Merge pull request #15 from sbalian/update-version #96
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: Tests | |
on: push | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ['3.9', '3.10', '3.11', '3.12'] | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Install the package (no lock file) | |
run: rm poetry.lock && poetry install -E numpy | |
- name: Run pytest | |
run: QRANDOM_API_KEY=key poetry run pytest | |
- name: Run mypy | |
run: poetry run mypy --install-types --non-interactive . | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
- name: Install the package | |
run: poetry install -E numpy | |
- name: Run black | |
run: poetry run black --check . | |
- name: Run isort | |
run: poetry run isort --check . | |
- name: Run flake8 | |
run: poetry run flake8 |