fix test which had been broken by failure to account for flipping of … #608
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: Python tests, non-pipeline | |
on: [push, pull_request] | |
jobs: | |
tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.11"] | |
os: [ubuntu-20.04, ubuntu-22.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up Poetry | |
uses: snok/install-poetry@v1 # v1.3.4 at time of adoption | |
with: | |
poetry-version: "1.7.1" | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/pypoetry/virtualenvs | |
~/.cache/pytest | |
key: ${{ runner.os }}-poetry-tests-${{ hashFiles('poetry.lock') }} | |
- name: Install project | |
run: poetry install --no-interaction --sync -E test | |
- name: Run NON-pipeline unit tests on Python ${{ matrix.python-version }} | |
run: poetry run pytest -vv tests/ --ignore=tests/pipeline |