Fix ruff #201
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: pipeline | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - dev | |
| pull_request: | |
| jobs: | |
| test-job: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| env: | |
| CONDA_FILE: environment.yml | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Setup Conda Environment | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| miniforge-version: latest | |
| use-mamba: true | |
| activate-environment: cadpythonsim | |
| channels: conda-forge, | |
| - name: install conda env | |
| run: | | |
| mamba env update -n cadpythonsim -f ${{ env.CONDA_FILE }} | |
| - name: Install | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . --group testing | |
| - name: Test | |
| if: always() | |
| run: | | |
| coverage run -m pytest | |
| - name: Coverage report | |
| if: always() | |
| run: | | |
| coverage report -m |