build(deps-dev): bump pre-commit from 3.7.0 to 4.0.1 #5
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: 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 }} |