-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.19 KB
/
test.yaml
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
name: "Test"
on:
push:
branches:
- "main"
jobs:
test:
name: "Test on ${{ matrix.config.os-name }}"
runs-on: "${{ matrix.config.runner }}"
strategy:
matrix:
config:
- os-name: "Linux"
runner: "ubuntu-latest"
test-label: "ci-test-linux"
- os-name: "macOS"
runner: "macos-latest"
test-label: "ci-test-macos"
- os-name: "Windows"
runner: "windows-latest"
test-label: "ci-test-windows"
fail-fast: false
steps:
- name: "Show environment (pre)"
shell: "bash"
run: env | sort
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Setup Python"
id: "setup-python"
uses: "actions/setup-python@v4"
with:
python-version: |
3.8
3.9
3.10
3.11
pypy-3.9
- name: "Show environment (post)"
shell: "bash"
run: |
find "$RUNNER_TOOL_CACHE/Python" "$RUNNER_TOOL_CACHE/PyPy" -mindepth 3 -maxdepth 5 -name 'python' -o -name 'python.exe' | while read path; do
"$path" identify.py
done