Skip to content

Commit 1831603

Browse files
committed
Merge branch 'users/jdixon/add-common-workflows' of https://github.com/ni/python-actions into users/jdixon/add-common-workflows
2 parents 082363c + 96c1e97 commit 1831603

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/test_actions.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ jobs:
216216
name: Test analyze-project
217217
runs-on: ${{ matrix.os }}
218218
strategy:
219+
fail-fast: false
219220
matrix:
220221
os: [windows-latest, ubuntu-latest, macos-latest]
221222
python-version: [3.9, '3.10', 3.11, 3.12, 3.13, 3.13t, pypy3.10, pypy3.11]

analyze-project/action.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ runs:
2525
result=$(poetry version)
2626
name=$(echo "$result" | awk '{print $1}')
2727
version=$(echo "$result" | awk '{print $2}')
28-
echo $name
29-
echo $version
28+
echo "Name: $name"
29+
echo "Version: $version"
3030
echo "name=$name" >> "$GITHUB_OUTPUT"
3131
echo "version=$version" >> "$GITHUB_OUTPUT"
32-
dude="$(poetry env info --path)"
33-
echo $dude
34-
echo "venv=$dude" >> "$GITHUB_OUTPUT"
32+
poetry env activate
33+
venv_path="$(poetry env info --path)"
34+
echo "venv path: $venv_path"
35+
echo "venv-path=$venv_path" >> "$GITHUB_OUTPUT"
3536
shell: bash
3637
working-directory: ${{ inputs.project-directory }}
3738
- name: Check for lock changes
@@ -40,7 +41,7 @@ runs:
4041
- name: Cache virtualenv
4142
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
4243
with:
43-
path: ${{ steps.get_project_info.outputs.dude }}
44+
path: ${{ steps.get_project_info.outputs.venv-path }}
4445
key: ${{ steps.get_project_info.outputs.name }}-${{ runner.os }}-py${{ env.pythonVersion }}-${{ hashFiles(format('{0}/poetry.lock', inputs.project-directory)) }}
4546
- name: Install ${{ steps.get_project_info.outputs.name }}
4647
run: |

0 commit comments

Comments
 (0)