Skip to content

Commit e45d740

Browse files
committed
ci: add e2e test step
Should make sure this plugin isn't causing issues in OctoPrint
1 parent 24ff273 commit e45d740

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,34 @@ jobs:
4545
run: |
4646
pre-commit run --all-files --show-diff-on-failure
4747
48+
e2e:
49+
name: 🧪 E2E tests
50+
needs: build
51+
runs-on: ubuntu-latest
52+
strategy:
53+
matrix:
54+
octoprint: ["master", "maintenance"]
55+
steps:
56+
- name: ⬇ Download build result
57+
uses: actions/download-artifact@v4
58+
with:
59+
name: dist
60+
path: dist
61+
62+
- name: 🎭 Run OctoPrint's E2E Tests
63+
uses: OctoPrint/actions/e2e@main
64+
with:
65+
ref: ${{ matrix.octoprint }}
66+
deps: ${{ github.workspace }}/dist/*.whl
67+
suffix: "-${{ matrix.octoprint }}"
68+
4869
publish-on-testpypi:
4970
name: 📦 Publish on TestPyPI
5071
if: github.event_name == 'release'
5172
needs:
5273
- build
5374
- pre-commit
75+
- e2e
5476
runs-on: ubuntu-latest
5577
steps:
5678
- name: ⬇ Download build result
@@ -61,7 +83,7 @@ jobs:
6183
- name: 📦 Publish to index
6284
uses: pypa/gh-action-pypi-publish@release/v1
6385
with:
64-
repository_url: https://test.pypi.org/legacy/
86+
repository-url: https://test.pypi.org/legacy/
6587

6688
publish-on-pypi:
6789
name: 📦 Publish tagged releases to PyPI

0 commit comments

Comments
 (0)