Skip to content

test more python versions #311

test more python versions

test more python versions #311

Workflow file for this run

# Run integration tests against the integ API endpoint
name: test integ
on: [push]
jobs:
run-tests:
runs-on: ubuntu-20.04
strategy:
# It's totally debatable which is better here: fail-fast or not.
# Failing fast will use fewer cloud resources, in theory.
# But if the tests are slightly flaky (fail to pip install something)
# Then one flaky install kills lots of jobs that need to be redone.
# So the efficiency argument has its limits
# Failing slow is clearer about what's going on.
# This is pretty unambiguous, so we're going with it for now.
fail-fast: false
matrix:
python-version: [
"3.9",
"3.10",
"3.11",
"3.12",
"3.13",
]
steps:
- name: get code
uses: actions/checkout@v3
- name: install python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: install poetry and build poetry environment
run: |
pip install -U pip
pip install poetry
poetry install
- name: run tests
run: poetry run pytest