mirror of
https://github.com/django/django.git
synced 2025-06-14 16:09:12 +00:00
[4.2.x] Adjusted GitHub Action workflow to test Python versions based off pyproject.toml.
This commit is contained in:
parent
3456eee4a3
commit
f4bd564701
2
.github/workflows/python_matrix.yml
vendored
2
.github/workflows/python_matrix.yml
vendored
@ -25,7 +25,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
- id: set-matrix
|
||||
run: |
|
||||
python_versions=$(sed -n "s/^.*Programming Language :: Python :: \([[:digit:]]\+\.[[:digit:]]\+\).*$/'\1', /p" setup.cfg | tr -d '\n' | sed 's/, $//g')
|
||||
python_versions=$(sed -n "s/^.*Programming Language :: Python :: \([[:digit:]]\+\.[[:digit:]]\+\).*$/'\1', /p" pyproject.toml | tr -d '\n' | sed 's/, $//g')
|
||||
echo "Supported Python versions: $python_versions"
|
||||
echo "python_versions=[$python_versions]" >> "$GITHUB_OUTPUT"
|
||||
python:
|
||||
|
Loading…
x
Reference in New Issue
Block a user