Repository navigation
66 lines (57 loc) · 1.65 KB
/
Copy pathci.yml
File metadata and controls
66 lines (57 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Lint & test
on:
push:
branches: [main]
pull_request:
permissions: {}
jobs:
test:
name: Lint & test
permissions:
contents: read
strategy:
fail-fast: false
matrix:
target: [test-signer]
pyversion: ['3.10', '3.14']
os: [ubuntu-latest, macos-latest]
# Only run repository on 3.14 (dependency pinning is easier with single version)
include:
- target: lint-signer
pyversion: '3.14'
os: ubuntu-latest
- target: lint-repo
pyversion: '3.14'
os: ubuntu-latest
- target: test-repo
pyversion: '3.14'
os: ubuntu-latest
- target: test-e2e
pyversion: '3.14'
os: ubuntu-latest
- target: lint-actions
pyversion: '3.14'
os: ubuntu-latest
runs-on: ${{ matrix.os }}
env:
TARGET: ${{ matrix.target }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
with:
python-version: ${{ matrix.pyversion }}
enable-cache: true
version-file: uv.lock
cache-dependency-glob: |
signer/pyproject.toml
repo/pyproject.toml
uv.lock
- name: Install system dependencies for e2e test
if: matrix.target == 'test-e2e'
run: |
sudo apt-get install libfaketime softhsm2
echo "PYKCS11LIB=/usr/lib/softhsm/libsofthsm2.so" >> $GITHUB_ENV
- name: ${{ matrix.target }}
run: make $TARGET