0.1.2: subprocess fix #6
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 | |
on: | |
pull_request: | |
paths-ignore: | |
- 'doc/**' | |
- 'README.md' | |
- 'CHANGELOG.md' | |
- 'TODO.md' | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
tests: | |
name: unittests python-${{ matrix.python-version }} ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- "3.7" | |
- "3.11" | |
os: | |
# not latest because this is last version that supports python-3.7 | |
- ubuntu-22.04 | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Poetry | |
run: pipx install git+https://github.com/python-poetry/poetry.git@5bab98c9500f1050c6bb6adfb55580a23173f18d | |
- name: Install Python ${{ matrix.python-version }} | |
id: setup-python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
update-environment: false | |
- run: poetry env use ${{ steps.setup-python.outputs.python-path }} | |
- run: poetry install --extras "dev" --no-interaction --no-cache -vvv | |
- run: poetry run pytest ./tests | |
name: run pytest (all) | |
if: ${{ !github.event.pull_request.draft }} | |
- run: poetry run pytest ./tests -m "not slow" | |
name: run pytest (not slow) | |
if: ${{ github.event.pull_request.draft }} |