Merge pull request #147 from miykael/create-pull-request/patch #53
This file contains 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: test | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: ['*'] | |
jobs: | |
unit_test: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
python -m pip install --upgrade pip setuptools | |
- name: Install | |
run: python -m pip install .[test] | |
- name: Test | |
run: python -m pytest --pyargs atlasreader --cov=atlasreader | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 | |
- name: Test notebooks | |
run: | | |
pip install nbval | |
for n in `ls notebooks/*ipynb` | |
do | |
pytest --nbval-lax -v -s ${n}; | |
done |