Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Update dependencies and add linting with Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
a-sevin committed Dec 12, 2023
1 parent 2733de3 commit a9af6ab
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/check-compass.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,22 @@ jobs:
run: |
eval "$(/home/compass/miniconda3/bin/conda shell.bash hook)"
conda activate compass
conda install -c "compass/label/cuda11" compass
pip install coverage flake8 pytest pytest-cov pytest-cover pytest-coverage pytest-html pytest-metadata
- name: Lint with flake8
run: |
conda install -c "compass/label/cuda11" compass -y
pip install coverage coverage-badge ruff pytest pytest-cov pytest-cover pytest-coverage pytest-html pytest-metadata
- name: Lint with Ruff
run: |
eval "$(/home/compass/miniconda3/bin/conda shell.bash hook)"
conda activate compass
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
ruff -- --format=github .
continue-on-error: true
- name: Check Compass on scao_sh_16x16_8pix
run: |
export SHESHA_ROOT=$PWD
export PYTHONPATH=$SHESHA_ROOT:$PYTHONPATH
export PYTHONDONTWRITEBYTECODE=1
eval "$(/home/compass/miniconda3/bin/conda shell.bash hook)"
conda activate compass
ipython -i shesha/scripts/closed_loop.py data/par/par4bench/scao_sh_16x16_8pix.py
ipython shesha/scripts/closed_loop.py data/par/par4bench/scao_sh_16x16_8pix.py
- name: Check Compass
run: |
export SHESHA_ROOT=$PWD
Expand Down

0 comments on commit a9af6ab

Please sign in to comment.