Skip to content

Commit

Permalink
tools: Update tox and setuptools to fix breakages (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau authored Jan 25, 2023
1 parent 23aa1a7 commit 552c132
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
python -m pip install 'tox>=4' tox-gh
echo "::endgroup::"
echo "::group::Create virtual environments for linting processes."
tox run-parallel --parallel all --parallel-no-spinner -m lint --notest
tox run -m lint --notest
echo "::endgroup::"
echo "::group::Wait for snap to complete"
snap watch --last=install
Expand Down Expand Up @@ -63,16 +63,9 @@ jobs:
echo "::endgroup::"
mkdir -p results
- name: Setup Tox environments
run: >
tox run-parallel --parallel auto --parallel-no-spinner
--parallel-live -m tests --notest
run: tox run -m tests --notest
- name: Test with tox
run: >
tox run-parallel --parallel all --parallel-no-spinner
--skip-pkg-install
--result-json results/tox-${{ matrix.platform }}.json
-m tests
-- --no-header --quiet -rN
run: tox run-parallel --parallel all --parallel-no-spinner --skip-pkg-install --result-json results/tox-${{ matrix.platform }}.json -m tests -- --no-header --quiet -rN
- name: Upload code coverage
uses: codecov/codecov-action@v3
with:
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ types = [

[build-system]
requires = [
"setuptools==45.2.0", # This is the version provided in apt with focal
"setuptools==66.1.1",
]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["starcraft"]

[tool.black]
target-version = ["py38"]

Expand Down

0 comments on commit 552c132

Please sign in to comment.