Skip to content

Commit 381946a

Browse files
committed
add python script path to system path
1 parent 438b09b commit 381946a

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

.github/workflows/build-and-release.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
# See https://pyinstaller.org/en/stable/usage.html?highlight=glibc#making-gnu-linux-apps-forward-compatible:~:text=The%20solution%20is%20to%20always%20build%20your%20app%20on%20the%20oldest%20version%20of%20GNU/Linux%20you%20mean%20to%20support.%20It%20should%20continue%20to%20work%20with%20the%20libc%20found%20on%20newer%20versions.
1616
# TODO: for similar reasons, we may want to build on older Windows/MacOS versions as well
1717
os-matrix: '["ubuntu-22.04", "windows-latest", "macos-latest"]'
18-
run-tests: false
1918
is-release: true
2019
secrets: inherit
2120

.github/workflows/build-and-test.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,5 @@ jobs:
3636
with:
3737
python-versions-matrix: '["3.10", "3.11", "3.12"]'
3838
os-matrix: '["ubuntu-latest", "windows-latest", "macos-latest"]'
39-
run-tests: true
4039
is-release: false
4140
secrets: inherit

.github/workflows/build-template.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,8 @@ on:
2727
required: false
2828
default: '["ubuntu-22.04", "windows-latest", "macos-latest"]'
2929
type: string
30-
run-tests:
31-
description: 'Run tests after building'
32-
required: false
33-
default: true
34-
type: boolean
3530
is-release:
36-
description: 'Is this a release build (updates version and uploads artifacts)'
31+
description: 'Is this a release build'
3732
required: false
3833
default: false
3934
type: boolean
@@ -78,8 +73,10 @@ jobs:
7873
run: |
7974
python -m pip install --upgrade pip setuptools pyinstaller
8075
curl -sSL https://install.python-poetry.org | python3 - --version ${{ env.POETRY_VERSION }}
81-
C:\Users\runneradmin\AppData\Roaming\Python\Scripts\poetry config virtualenvs.create false
82-
C:\Users\runneradmin\AppData\Roaming\Python\Scripts\poetry install --no-root
76+
echo "C:\Users\runneradmin\AppData\Roaming\Python\Scripts" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
77+
78+
poetry config virtualenvs.create false
79+
poetry install --no-root
8380
8481
# Linux-specific system dependencies
8582
- name: Install system dependencies (Linux)
@@ -146,7 +143,7 @@ jobs:
146143
147144
# Optional: Run tests
148145
- name: Run tests
149-
if: inputs.run-tests
146+
if: ${{ !inputs.is-release }}
150147
shell: bash
151148
env:
152149
# Add your test environment variables here

0 commit comments

Comments
 (0)