-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (85 loc) · 2.51 KB
/
tests.yml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Unit tests
on:
push:
branches:
- main
pull_request:
jobs:
test-ubuntu-macos:
strategy:
matrix:
platform:
- macos-latest
- ubuntu-latest
python:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
persist-credentials: false
- name: Install the latest version of uv
uses: astral-sh/setup-uv@c14a0593fa503d0af0f4c9fb8ce8c7e1d9c496f9 # v3
with:
version: "0.4.18"
enable-cache: true
cache-dependency-glob: pyproject.toml
- name: Install Python ${{ matrix.python }}
run: uv python install ${{ matrix.python }}
- name: test
run: make test INSTALL_EXTRA=test
test-windows:
strategy:
matrix:
windows:
- 'win64'
python:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
runs-on: windows-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
persist-credentials: false
- name: Install the latest version of uv
uses: astral-sh/setup-uv@c14a0593fa503d0af0f4c9fb8ce8c7e1d9c496f9 # v3
with:
version: "0.4.18"
enable-cache: true
cache-dependency-glob: pyproject.toml
- name: Install Python ${{ matrix.python }}
run: uv python install ${{ matrix.python }}
- uses: dawidd6/action-download-artifact@bf251b5aa9c2f7eeb574a96ee720e24f801b7c11 # v6
with:
repo: pyca/infra
workflow: build-windows-openssl.yml
branch: main
workflow_conclusion: success
name: "openssl-${{ matrix.windows }}"
path: "C:/openssl-${{ matrix.windows }}/"
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Configure
shell: bash
run: |
echo "OPENSSL_DIR=C:/openssl-${{ matrix.windows }}" >> $GITHUB_ENV
echo "OPENSSL_NO_VENDOR=1" >> $GITHUB_ENV
- name: test
run: |
make test INSTALL_EXTRA=test
shell: bash
all-tests-pass:
if: always()
needs: [test-ubuntu-macos, test-windows]
runs-on: ubuntu-latest
steps:
- name: check test jobs
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
with:
jobs: ${{ toJSON(needs) }}