Skip to content

Commit

Permalink
add py312, remove <py310
Browse files Browse the repository at this point in the history
  • Loading branch information
arska committed Dec 13, 2023
1 parent 9452405 commit ee0b4fe
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 27 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@ jobs:
name: "run tox"
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", 3.11]
python-version: ["3.10", 3.11, 3.12]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
env:
CODECOV_TOKEN: "889b90e8-e5a8-4139-aef6-87e6f2e1a0a4"
run: tox
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
env:
CODECOV_TOKEN: "889b90e8-e5a8-4139-aef6-87e6f2e1a0a4"
run: tox

package:
name: "Build & verify package"
runs-on: "ubuntu-latest"
Expand All @@ -35,7 +35,7 @@ jobs:
- uses: "actions/checkout@v4"
- uses: "actions/setup-python@v5"
with:
python-version: "3.9"
python-version: "3.11"

- name: "Install pep517 and twine"
run: "python -m pip install pep517 twine"
Expand Down
6 changes: 2 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@ charset-normalizer==3.3.2
# via requests
idna==3.6
# via requests
pyyaml==6.0.1
# via responses
requests==2.31.0
# via
# -r requirements.in
# responses
responses==0.24.1
# via -r requirements.in
toml==0.10.2
# via responses
types-toml==0.10.8.7
# via responses
urllib3==2.1.0
# via
# requests
Expand Down
13 changes: 6 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,25 @@ envlist =
clean
pylint
flake8
py38
py39
py310
py311
py312
report
skip_missing_interpreters = True
#requires =
# tox-pip-extensions
basepython =
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py311: python3.12

[gh-actions]
python =
3.8: py38, clean, pylint, flake8, report
3.8: py38
3.9: py39
"3.10": py310
3.11: py311
3.11: py311, clean, pylint, flake8, report
3.12: py312

[testenv]
deps =
Expand Down Expand Up @@ -51,7 +50,7 @@ commands =
codecov -e TOXENV

[testenv:flake8]
basepython = python3.6
basepython = python3.11
deps = flake8
flake8-isort
flake8-black
Expand Down

0 comments on commit ee0b4fe

Please sign in to comment.