Skip to content

Commit

Permalink
hack: use system python for py37
Browse files Browse the repository at this point in the history
  • Loading branch information
hirosassa committed Jan 25, 2025
1 parent 57b56ea commit 4428baf
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/pythonbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
include:
#- tox-env: py37-core
- tox-env: py37-core
- tox-env: py38-core
- tox-env: py39-core
- tox-env: py310-core
Expand All @@ -27,6 +27,11 @@ jobs:
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"
- name: Set up Python ${{ matrix.python-version }}
if: ${{ matrix.tox-env == 'py37-core' }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
uv tool install --python-preference only-managed --python 3.12 tox --with tox-uv # we need latest uv, tox, and tox-uv
Expand All @@ -37,9 +42,15 @@ jobs:
mysql -e 'create user 'travis'@'localhost';' -uroot -proot || true
mysql -e 'grant all privileges ON *.* TO 'travis'@'localhost';' -uroot -proot || true
- name: Build
if: ${{ matrix.tox-env != 'py37-core' }}
env:
TOXENV: ${{ matrix.tox-env }}
run: uvx --with tox-uv tox run
- name: Build
if: ${{ matrix.tox-env == 'py37-core' }}
env:
TOXENV: ${{ matrix.tox-env }}
run: uvx --python-preference only-system tox run
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
Expand Down

0 comments on commit 4428baf

Please sign in to comment.