Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hack: use system python for py37
Browse files Browse the repository at this point in the history
hirosassa committed Jan 25, 2025
1 parent 4428baf commit 2821873
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/pythonbuild.yml
Original file line number Diff line number Diff line change
@@ -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
@@ -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 --python-preference only-system tox run
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ markers =
azureblob: tests related to azure

[testenv]
runner = uv-venv-lock-runner
# runner = uv-venv-lock-runner
allowlist_externals = {toxinidir}/scripts/ci/*.sh
dependency_groups =
core: common

0 comments on commit 2821873

Please sign in to comment.