Skip to content

[pre-commit.ci] pre-commit autoupdate #856

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #856

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
env:
PYTHON_VERSION: ${{ matrix.python-version }}
PYTHONUNBUFFERED: 1
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: requirements*.txt
- name: Install System dependencies
run: |
sudo apt-get update
sudo apt-get install -qq -y --no-install-recommends libxmlsec1-dev swig
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install coverage tox
- name: Test with tox
run: tox -e "py${PYTHON_VERSION/\./}"
- uses: codecov/codecov-action@v3
with:
flags: unittests
name: Python ${{ matrix.python-version }}