diff --git a/.github/workflows/check-compass.yml b/.github/workflows/check-compass.yml index d1a486b..8cc575a 100644 --- a/.github/workflows/check-compass.yml +++ b/.github/workflows/check-compass.yml @@ -34,16 +34,14 @@ 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 @@ -51,7 +49,7 @@ jobs: 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