Skip to content

Commit 62c3f2c

Browse files
committed
github workflows. Revert to standard python-ci workflows.
As tests/*.py now skip the hardware-in-the-loop tests when running in a github workflow, we don't need to skip the pytest CI tests. So, revert to my standard python-ci workflows.
1 parent 95a676d commit 62c3f2c

File tree

3 files changed

+17
-22
lines changed

3 files changed

+17
-22
lines changed

.github/workflows/ci-release.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,17 @@ on:
1919
workflow_dispatch:
2020

2121
jobs:
22-
checks:
23-
name: Code checks
24-
uses: glenn20/python-ci/.github/workflows/check.yaml@v1
25-
26-
build:
27-
name: Build
28-
uses: glenn20/python-ci/.github/workflows/build.yaml@v1
22+
tests:
23+
name: Tests
24+
uses: glenn20/python-ci/.github/workflows/check-test-build.yaml@main
25+
with:
26+
os: '["ubuntu-latest", "windows-latest", "macos-latest"]'
27+
python-version: '["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]'
2928

3029
publish-test:
3130
name: Publish to test.pypi
3231
uses: ./.github/workflows/publish.yaml
33-
needs: build
32+
needs: tests
3433
with:
3534
pypi: test.pypi
3635
permissions:
@@ -39,7 +38,7 @@ jobs:
3938
publish-pypi:
4039
name: Publish to pypi
4140
uses: ./.github/workflows/publish.yaml
42-
needs: build
41+
needs: tests
4342
with:
4443
pypi: upload.pypi
4544
permissions:
@@ -48,7 +47,7 @@ jobs:
4847
github-release:
4948
name: Create GitHub release
5049
uses: glenn20/python-ci/.github/workflows/release.yaml@v1
51-
needs: build
50+
needs: tests
5251
permissions:
5352
contents: write # IMPORTANT: mandatory for github release
5453
id-token: write # IMPORTANT: mandatory for github release

.github/workflows/ci-tests.yaml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,16 @@ on:
1313
workflow_dispatch:
1414

1515
jobs:
16-
# Can't run pytest tests as they require hardware-in-the-loop
17-
# So, just run check and build tests
18-
19-
checks:
20-
name: Code checks
21-
uses: glenn20/python-ci/.github/workflows/check.yaml@v1
22-
23-
build:
24-
name: Build
25-
uses: glenn20/python-ci/.github/workflows/build.yaml@v1
16+
tests:
17+
name: CI tests
18+
uses: glenn20/python-ci/.github/workflows/check-test-build.yaml@v1
19+
with: # A short test matrix for fast testing of commits
20+
os: '["ubuntu-latest"]'
21+
python-version: '["3.9", "3.13"]'
2622

2723
publish-test:
2824
name: Publish to test.pypi
29-
needs: build
25+
needs: tests
3026
if: |
3127
github.event_name == 'workflow_dispatch' ||
3228
(github.event_name == 'push' && github.ref == 'refs/heads/main')

src/mpremote_path/util/mpfsops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Includes functions for copying, moving and removing multiple files and
44
directories locally, or on serial attached micropython boards.
55
6-
These functions opetrate on files specified as `Path` or `MPath` instances. Use
6+
These functions operate on files specified as `Path` or `MPath` instances. Use
77
the `mpfscmd` sub-module to operate on files specified as strings or lists of
88
strings.
99
"""

0 commit comments

Comments
 (0)