File tree Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Original file line number Diff line number Diff line change 1
1
name : Build and Distribute PhotonLibPy
2
2
3
3
permissions :
4
- id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
4
+ id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
5
5
6
6
on :
7
7
push :
8
- branches : [ master ]
8
+ branches : [master]
9
9
tags :
10
- - ' v* '
10
+ - " v* "
11
11
paths :
12
- - ' ** '
13
- - ' !docs/**'
14
- - ' .github/**'
12
+ - " ** "
13
+ - " !docs/**"
14
+ - " .github/**"
15
15
pull_request :
16
- branches : [ master ]
16
+ branches : [master]
17
17
paths :
18
- - ' ** '
19
- - ' !docs/**'
20
- - ' .github/**'
18
+ - " ** "
19
+ - " !docs/**"
20
+ - " .github/**"
21
21
merge_group :
22
22
23
23
jobs :
38
38
- name : Install dependencies
39
39
run : |
40
40
python -m pip install --upgrade pip
41
- pip install setuptools wheel pytest mypy
41
+ pip install setuptools wheel pytest mypy robotpy_build
42
42
43
43
- name : Build wheel
44
44
working-directory : ./photon-lib/py
48
48
- name : Run Unit Tests
49
49
working-directory : ./photon-lib/py
50
50
run : |
51
- pip install --no-cache-dir dist/*.whl
52
- pytest
51
+ pip install --no-cache-dir dist/*.whl
52
+ pytest
53
53
54
54
- name : Run mypy type checking
55
55
uses : liskin/gh-problem-matcher-wrap@v3
58
58
run : |
59
59
mypy --show-column-numbers --config-file photon-lib/py/pyproject.toml photon-lib
60
60
61
-
62
61
- name : Upload artifacts
63
62
uses : actions/upload-artifact@master
64
63
with :
73
72
packages_dir : ./photon-lib/py/dist/
74
73
75
74
permissions :
76
- id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
75
+ id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
You can’t perform that action at this time.
0 commit comments