Skip to content

Try to support Python 3.9 #987

Try to support Python 3.9

Try to support Python 3.9 #987

Workflow file for this run

name: Lint & test
on:
push:
branches: [main]
pull_request:
permissions: {}
jobs:
test:
permissions:
contents: read
strategy:
fail-fast: false
matrix:
toxenv: [lint-signer, lint-repo, test-signer, test-repo, test-e2e]
pyversion: ['3.12']
os: [ubuntu-latest]
# run signer tests/lint also on 3.9 and macos
include:
- toxenv: lint-signer
pyversion: '3.9'
os: ubuntu-latest
- toxenv: test-signer
pyversion: '3.9'
os: ubuntu-latest
- toxenv: lint-signer
pyversion: '3.9'
os: macos-latest
- toxenv: test-signer
pyversion: '3.9'
os: macos-latest
runs-on: ${{ matrix.os }}
env:
TOXENV: ${{ matrix.toxenv }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: ${{ matrix.pyversion }}
cache: 'pip'
cache-dependency-path: |
signer/pyproject.toml
repo/pyproject.toml
action-constraints.txt
build/build-constraints.txt
- name: Install system dependencies for e2e test
if: matrix.toxenv == 'test-e2e'
run: |
sudo apt-get install libfaketime softhsm2
echo "PYKCS11LIB=/usr/lib/softhsm/libsofthsm2.so" >> $GITHUB_ENV
- name: Install tox
run: python -m pip install -c build/build-constraints.txt tox
- name: ${{ matrix.toxenv }}
run: tox