[pre-commit.ci] pre-commit autoupdate #280
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 Run Tox | |
on: [pull_request] | |
jobs: | |
build: | |
name: Python Tests | |
runs-on: ubuntu-24.04 | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: ['3.13'] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.CLONE_SUBMODULE }} | |
submodules: true | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install tox | |
# Following step is required for python 3.9: Build depenencies are missing | |
sudo apt-get update && sudo apt-get install libxml2-dev libxslt-dev python3-dev -y | |
- name: Run linters in tox | |
run: tox -e linters | |
- name: Test with tox | |
# Run tox using the version of Python in `PATH` | |
run: tox -e py | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v5 | |
with: | |
file: ./coverage.xml | |
fail_ci_if_error: false | |
token: ${{ secrets.CODECOV_TOKEN }} |