Skip to content

Commit

Permalink
ci: install rsync
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdinkel committed Dec 18, 2024
1 parent 2fb7284 commit 962db6e
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions .github/workflows/.github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
container:
image: ghcr.io/4c-multiphysics/4c:latest
# options: --user root --env OMPI_ALLOW_RUN_AS_ROOT=1 --env OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
options: --user root --env OMPI_ALLOW_RUN_AS_ROOT=1 --env OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
defaults:
run:
shell: bash -l {0}
Expand All @@ -22,27 +22,32 @@ jobs:
- uses: conda-incubator/setup-miniconda@v3
- name: build
run: |
pwd
echo ~
whoami
ls /home
ls /home/user
ln -s home/user/4C/build/4C config/4C
ls config/
sudo apt-get update
sudo apt-get install -y rsync
echo /home/user/4C
# ls /home/user/4C
# echo /home/user/4C/tests
# ls /home/user/4C/tests
# echo /home/user/4C/tests/input_files
# ls /home/user/4C/tests/input_files
# ln -s /home/user/4C/build/4C config/4C
# ls config/
mpirun --bind-to none -np 1 config/4C /home/user/4C/tests/input_files/solid_runtime_hex8.dat out
/usr/bin/mpirun --bind-to none -np 2 config/4C /home/user/4C/tests/input_files/solid_runtime_hex8.dat out
$PYTHON_PACKAGE_MANAGER env create -f environment.yml
$PYTHON_PACKAGE_MANAGER activate queens
pip install -e .[develop]
$PYTHON_PACKAGE_MANAGER env export > pipeline_conda_environment.yml
$PYTHON_PACKAGE_MANAGER list
- name: codechecks
run: |
$PYTHON_PACKAGE_MANAGER activate queens
isort --check-only queens tests > track_isort.txt 2>&1
black --check queens tests > track_black.txt 2>&1
pylint --rcfile=.pylintrc_ci queens tests | tee track_pylint.txt 2>&1
pylint queens tests --rcfile=.pylintrc --output-format=json:pylint_warnings.json --fail-under 0
python .gitlab/pipeline_utils/code_quality_creator.py pylint_warnings.json
pydocstyle --match-dir='^(?!.*test).*$' queens > track_pydocstyle.txt 2>&1
#- name: codechecks
#run: |
# $PYTHON_PACKAGE_MANAGER activate queens
# isort --check-only queens tests > track_isort.txt 2>&1
# black --check queens tests > track_black.txt 2>&1
# pylint --rcfile=.pylintrc_ci queens tests | tee track_pylint.txt 2>&1
# pylint queens tests --rcfile=.pylintrc --output-format=json:pylint_warnings.json --fail-under 0
# python .gitlab/pipeline_utils/code_quality_creator.py pylint_warnings.json
# pydocstyle --match-dir='^(?!.*test).*$' queens > track_pydocstyle.txt 2>&1
- name: tests
run: |
$PYTHON_PACKAGE_MANAGER activate queens
Expand Down

0 comments on commit 962db6e

Please sign in to comment.