Skip to content

ci: debug

ci: debug #717

Workflow file for this run

name: check
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
python-version:
- "3.7"
#- "3.8"
#- "3.9"
#- "3.10"
#- "3.11"
#- "3.12"
#- "3.13.0-alpha - 3.13"
#- "pypy-3.9"
#- "pypy-3.10"
include:
- python-version: "3.5"
os: ubuntu-20.04
extra-deps: "'virtualenv<20.22.0'"
- python-version: "3.6"
os: ubuntu-20.04
extra-deps: "'virtualenv<20.22.0'"
steps:
- uses: actions/checkout@v4
- run: |
set -euxo pipefail
dpkg -l ca-certificates
ls /etc/ssl/certs/ -l
- uses: actions/setup-python@v5
with:
# >= 3.11 to ensure there's a recent one to run nox with
# (assumption: last one listed ends up as "python3")
python-version: |
${{ matrix.python-version }}
>=3.11
env:
PIP_CERT: /etc/ssl/certs/ca-certificates.crt
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
.nox
key: >-
test-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles(
'requirements-test.txt'
) }}
restore-keys: test-${{ runner.os }}-${{ matrix.python-version }}-
- run: |
set -euxo pipefail
dpkg -l ca-certificates
python3 -m pip install -U nox codecov ${{ matrix.extra-deps }}
v="${{ matrix.python-version }}"
v=${v##* } # "3.12.0-alpha - 3.12" -> "3.12"
v=${v//-} # "pypy-3.9" -> "pypy3.9"
nox --force-color --python $v
codecov -X gcov
env:
PYTEST_ADDOPTS: --color=yes