Skip to content

Migrate to github actions #1

Migrate to github actions

Migrate to github actions #1

Workflow file for this run

name: PR Tests
on:
pull_request:
branches:
- main
- 'release/**'
jobs:
run-tests:
name: Execute unit tests
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v4
- name: Initialize the environment
uses: ./.github/actions/initialize
- name: Execute unit tests
run: pytest --cov=src --cov-report term-missing:skip-covered --cov-config=tox.ini --no-cov-on-fail --cov-fail-under=100 tests/
run-tests-against-latest:
# These runs are intended to confirm the latest minor version of our dependencies we claim to
# support don't break with our latest changes. Since they're not the versions we directly state
# you should use (i.e. in requirements.txt), they argubly aren't critical, hence not blocking.
name: Non-blocking - Execute unit tests against latest version of dependencies
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v4
- name: Initialize the environment
uses: ./.github/actions/initialize
with:
latest: 'true'
- name: Execute unit tests
run: pytest tests/