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 4428baf commit 81d9cae
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/pythonbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@ jobs:
if: ${{ matrix.tox-env == 'py37-core' }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: 3.7
- name: Install dependencies
if: ${{ matrix.tox-env != 'py37-core' }}
run: |
uv tool install --python-preference only-managed --python 3.12 tox --with tox-uv # we need latest uv, tox, and tox-uv
- name: Install dependencies for Python 3.7
if: ${{ matrix.tox-env == 'py37-core' }}
run: |
uv pip install --system tox
- name: Setup MySQL DB
run: |
sudo /etc/init.d/mysql start
Expand All @@ -46,11 +51,11 @@ jobs:
env:
TOXENV: ${{ matrix.tox-env }}
run: uvx --with tox-uv tox run
- name: Build
- name: Build for Python 3.7
if: ${{ matrix.tox-env == 'py37-core' }}
env:
TOXENV: ${{ matrix.tox-env }}
run: uvx --python-preference only-system tox run
run: uv run --system tox run
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
Expand Down

0 comments on commit 81d9cae

Please sign in to comment.