Skip to content

Commit

Permalink
ci: Enable parallel tox runtime tests again
Browse files Browse the repository at this point in the history
Closes #78
  • Loading branch information
abelcheung committed Feb 24, 2025
1 parent ac3eadd commit 40a94e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/test_inc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,6 @@ jobs:
--with tox-uv
[email protected]
# Trigger npm install pyright once, otherwise
# tox run-parallel would cause multiple concurrent
# installation into same location and fail
# RobertCraigie/pyright-python#318
- name: Prepare test environment
run: |
uvx tox run -e pyright -- --version
# Glob not supported under default windows env
- name: Determine wheel file name
id: wheel-name
Expand All @@ -124,27 +116,13 @@ jobs:
echo "filename=$(echo dist/*.whl)" >> "$GITHUB_OUTPUT"
- name: Test runtime
if: runner.os != 'Windows'
run: >
uvx
tox run-parallel
--skip-env='.*-stub$'
--installpkg ${{ steps.wheel-name.outputs.filename }}
--result-json test-${{ inputs.flavor }}-rt-${{ matrix.os }}-py${{ matrix.pyver }}.json
# Tox-uv wreak havoc on the platform that needs it
# most (Windows) under concurrent cache access,
# which can potentially occur at every tox setup
# steps before pytest. No workaround so far.
- name: Test runtime (serially)
if: runner.os == 'Windows'
run: >
uvx
tox run
--skip-env='.*-stub$'
--installpkg ${{ steps.wheel-name.outputs.filename }}
--result-json test-${{ inputs.flavor }}-rt-${{ matrix.os }}-py${{ matrix.pyver }}.json
- uses: actions/upload-artifact@v4
with:
name: log-${{ inputs.flavor }}-rt-${{ matrix.os }}-py${{ matrix.pyver }}
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ basic = [
]
mypy = ["mypy == 1.11.2"]
pyright = [
"pyright == 1.1.390",
# RobertCraigie/pyright-python/#318
"pyright == 1.1.394",
"basedpyright == 1.27.1",
]
format = ["ruff ~= 0.6"]
Expand Down

0 comments on commit 40a94e6

Please sign in to comment.