[MAINT] run test and flake8 github actions #18
Workflow file for this run
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'] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
python -m pip install --upgrade pip pytest pytest-cov | |
- name: Install | |
run: pip install . | |
- name: Test | |
run: pytest -vvv 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 |