Updated version #412
Workflow file for this run
This file contains hidden or 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
| # Run tox tests on Ubuntu Docker images using the deadsnakes and GIFT PPAs | |
| name: test_tox | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| permissions: read-all | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - python-version: '3.10' | |
| toxenv: 'py310' | |
| - python-version: '3.11' | |
| toxenv: 'py311' | |
| - python-version: '3.12' | |
| toxenv: 'py312' | |
| - python-version: '3.13' | |
| toxenv: 'py313' | |
| - python-version: '3.14' | |
| toxenv: 'py314' | |
| container: | |
| image: ubuntu:26.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up container | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| run: | | |
| apt update -q | |
| apt install -y libterm-readline-gnu-perl locales software-properties-common | |
| locale-gen en_US.UTF-8 | |
| ln -f -s /usr/share/zoneinfo/UTC /etc/localtime | |
| - name: Install dependencies | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| run: | | |
| add-apt-repository -y universe | |
| add-apt-repository -y ppa:deadsnakes/ppa | |
| add-apt-repository -y ppa:gift/dev | |
| apt update -q | |
| apt install -y build-essential git pkg-config python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-pip python3-setuptools tox | |
| - name: Run tests | |
| env: | |
| LANG: en_US.UTF-8 | |
| run: | | |
| tox -e ${{ matrix.toxenv }},wheel | |
| coverage: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.14'] | |
| container: | |
| image: ubuntu:26.04 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up container | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| run: | | |
| apt update -q | |
| apt install -y libterm-readline-gnu-perl locales software-properties-common | |
| locale-gen en_US.UTF-8 | |
| ln -f -s /usr/share/zoneinfo/UTC /etc/localtime | |
| - name: Install dependencies | |
| env: | |
| DEBIAN_FRONTEND: noninteractive | |
| run: | | |
| add-apt-repository -y universe | |
| add-apt-repository -y ppa:deadsnakes/ppa | |
| add-apt-repository -y ppa:gift/dev | |
| apt update -q | |
| apt install -y build-essential curl git pkg-config python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-pip python3-setuptools tox | |
| - name: Run tests with coverage | |
| env: | |
| LANG: en_US.UTF-8 | |
| run: | | |
| tox -e coverage | |
| - name: Upload coverage report to Codecov | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |