-
Notifications
You must be signed in to change notification settings - Fork 17
53 lines (43 loc) · 1.06 KB
/
CI-test.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
name: CI-test
on:
push:
branches: ["main"]
paths-ignore:
- "**.md"
- "LICENSE"
pull_request:
branches: ["main"]
paths-ignore:
- "**.md"
- "LICENSE"
workflow_dispatch:
env:
GITHUB_ACTIONS: true
jobs:
CI:
strategy:
matrix:
python-version: ["3.10"]
os-version: ["windows-latest", "ubuntu-20.04", "macos-13", "macos-14"]
runs-on: ${{ matrix.os-version }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: pdm-project/setup-pdm@v4
name: Setup PDM
with:
python-version: ${{ matrix.python-version }}
continue-on-error: true
- name: vulkan dll
if: matrix.os-version == 'windows-latest'
run: echo F | xcopy .\assets\vulkan-1.dll C:\Windows\System32
- name: Test
run: |
pdm install
pdm run test
- name: Codecov
if: matrix.os-version == 'ubuntu-20.04'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}