Skip to content

Commit 942335a

Browse files
committed
Depend on robotpy-build
1 parent d6aaca2 commit 942335a

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

.github/workflows/python.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
name: Build and Distribute PhotonLibPy
22

33
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
55

66
on:
77
push:
8-
branches: [ master ]
8+
branches: [master]
99
tags:
10-
- 'v*'
10+
- "v*"
1111
paths:
12-
- '**'
13-
- '!docs/**'
14-
- '.github/**'
12+
- "**"
13+
- "!docs/**"
14+
- ".github/**"
1515
pull_request:
16-
branches: [ master ]
16+
branches: [master]
1717
paths:
18-
- '**'
19-
- '!docs/**'
20-
- '.github/**'
18+
- "**"
19+
- "!docs/**"
20+
- ".github/**"
2121
merge_group:
2222

2323
jobs:
@@ -38,7 +38,7 @@ jobs:
3838
- name: Install dependencies
3939
run: |
4040
python -m pip install --upgrade pip
41-
pip install setuptools wheel pytest mypy
41+
pip install setuptools wheel pytest mypy robotpy_build
4242
4343
- name: Build wheel
4444
working-directory: ./photon-lib/py
@@ -48,8 +48,8 @@ jobs:
4848
- name: Run Unit Tests
4949
working-directory: ./photon-lib/py
5050
run: |
51-
pip install --no-cache-dir dist/*.whl
52-
pytest
51+
pip install --no-cache-dir dist/*.whl
52+
pytest
5353
5454
- name: Run mypy type checking
5555
uses: liskin/gh-problem-matcher-wrap@v3
@@ -58,7 +58,6 @@ jobs:
5858
run: |
5959
mypy --show-column-numbers --config-file photon-lib/py/pyproject.toml photon-lib
6060
61-
6261
- name: Upload artifacts
6362
uses: actions/upload-artifact@master
6463
with:
@@ -73,4 +72,4 @@ jobs:
7372
packages_dir: ./photon-lib/py/dist/
7473

7574
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

0 commit comments

Comments
 (0)