Merge branch 'public_pre_main' into 'main' #148
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: Tests | |
| on: [push] | |
| jobs: | |
| linting: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: lint | |
| run: | | |
| pip install isort black[jupyter] flake8-docstrings | |
| isort --check . -v | |
| black --check */ -v | |
| flake8 . -v | |
| testing: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] # [ubuntu-latest, windows-latest, macos-latest] | |
| python-version: ["3.9", "3.10", "3.13"] | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: setup python ${{ matrix.python-version }} on ${{ matrix.os }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: run tests | |
| run: | | |
| git lfs fetch | |
| git lfs checkout | |
| pip install .[TEST] | |
| pytest --cov=. --cov-config=pyproject.toml --cov-report term \ | |
| --cov-report xml:./tests/coverage.xml | |
| - name: upload coverage report | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage_report_${{ matrix.os }}_${{ matrix.python-version }} | |
| path: ./tests/coverage.xml |