Skip to content

Commit 2687919

Browse files
committed
ci: attempt to fix e2e build step
1 parent c659c32 commit 2687919

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ jobs:
5757
uses: actions/checkout@v4
5858
with:
5959
repository: OctoPrint/OctoPrint
60+
ref: maintenance
61+
fetch-depth: 0
6062
path: OctoPrint
6163

6264
- name: ⬇ Download build result
@@ -72,19 +74,21 @@ jobs:
7274

7375
- name: 🏗 Install OctoPrint
7476
run: |
75-
cd OctoPrint
76-
pip install .
77-
pip install ${{ github.workspace }}/dist/*.whl
77+
pip install OctoPrint
78+
pip install --force-reinstall ${{ github.workspace }}/dist/*.whl
7879
7980
- name: 🏗 Create base config for test server
8081
run: |
8182
mkdir e2econfig
8283
cp -r OctoPrint/.github/fixtures/with_acl/* e2econfig
8384
84-
- name: 🏗 Install dummy mfa plugin
85+
- name: 🏗 Install dummy mfa plugin if available
8586
run: |
86-
mkdir -p e2econfig/plugins
87-
cp -r OctoPrint/.github/fixtures/mfa_dummy e2econfig/plugins/mfa_dummy
87+
plugin="${{ github.workspace }}/OctoPrint/.github/fixtures/mfa_dummy"
88+
if [ -f "$plugin" ]; then
89+
mkdir -p e2econfig/plugins
90+
cp -r "$plugin" "e2econfig/plugins/mfa_dummy"
91+
fi
8892
8993
- name: 🏗 Prepare Playwright env
9094
working-directory: ./OctoPrint/tests/playwright

0 commit comments

Comments
 (0)