Skip to content

Commit

Permalink
Check 3.11 support (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat authored Jul 27, 2022
1 parent 2ff120b commit a5e9610
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,23 @@ concurrency:
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: pre-commit/[email protected]

test:
name: test ${{ matrix.py }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
py:
- "3.11.0-beta.4"
- "3.10"
- "pypy-3.7-v7.3.7" # ahead to start it earlier because takes longer
- "3.9"
- "3.8"
- "3.7"
os:
- ubuntu-20.04
- ubuntu-22.04
- windows-2022
- macos-10.15
- macos-12

steps:
- name: Setup python for tox
Expand Down Expand Up @@ -81,7 +73,7 @@ jobs:

coverage:
name: Combine coverage
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: test
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -118,8 +110,8 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- ubuntu-22.04
- windows-2022
tox_env:
- dev
- type
Expand All @@ -144,7 +136,7 @@ jobs:

publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs: [ check, coverage, lint ]
needs: [ check, coverage ]
runs-on: ubuntu-latest
steps:
- name: Setup python to build package
Expand All @@ -159,7 +151,7 @@ jobs:
- name: Build sdist and wheel
run: python -m build -s -w . -o dist
- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@v1.5.1
with:
skip_existing: true
user: __token__
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ requires = ["hatchling>=0.22.0", "hatch-vcs"]
name = "platformdirs"
description = 'A small Python package for determining appropriate platform-specific dirs, e.g. a "user data dir".'
readme = "README.rst"
license = "MIT"
license.file = "LICENSE"
maintainers = [
{ name = "Bernát Gábor", email = "[email protected]" },
{ name = "Julian Berman", email = "[email protected]" },
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[tox]
envlist =
fix
py311
py310
py39
py38
Expand Down Expand Up @@ -75,6 +76,7 @@ commands =
coverage html -d {toxworkdir}/htmlcov
diff-cover --compare-branch {env:DIFF_AGAINST:origin/main} {toxworkdir}/coverage.xml
depends =
py311
py310
py39
py38
Expand Down

0 comments on commit a5e9610

Please sign in to comment.