-
Notifications
You must be signed in to change notification settings - Fork 17
58 lines (48 loc) · 1.21 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
54
55
56
57
58
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-latest"]
runs-on: ${{ matrix.os-version }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: pdm-project/setup-pdm@v3
name: Setup PDM
with:
python-version: ${{ matrix.python-version }}
architecture: x64
version: 2.11.1
prerelease: false
enable-pep582: false
allow-python-prereleases: false
update-python: 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 }}