Skip to content

Commit 184ecca

Browse files
committed
CI: another attempt
1 parent 47eec05 commit 184ecca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/python-package.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,10 @@ jobs:
3838
flake8 . --config=flake8rc --count --exit-zero --max-complexity=100 --max-line-length=127 --statistics
3939
- name: Determine Python version string for PDM
4040
run: |
41-
TARGET_PYTHON_VERSION_FOR_PDM=$( python -c 'import sys; v = sys.argv[1]; print(v if "-" not in v else v.replace("-", "@"))' ${{ matrix.python-version }} )
41+
echo "TARGET_PYTHON_VERSION_FOR_PDM=${{ matrix.python-version }}" | tr - @ >> "$GITHUB_ENV"
4242
# We need this hack at all because CI expects e.g. "pypy-3.10", whereas PDM expects "[email protected]".
4343
# Now that we have the result, send it to an environment variable so that the next step can use it.
4444
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#setting-an-environment-variable
45-
echo "TARGET_PYTHON_VERSION=$TARGET_PYTHON_VERSION_FOR_PDM" >> "$GITHUB_ENV"
4645
- name: Create in-project virtualenv and install dependencies
4746
run: |
4847
pdm python install "$TARGET_PYTHON_VERSION_FOR_PDM"

0 commit comments

Comments
 (0)