Skip to content

Commit

Permalink
Merge pull request #26 from fundakol/fundakol-patch-1
Browse files Browse the repository at this point in the history
Update main.yml
  • Loading branch information
fundakol authored Jun 3, 2024
2 parents b6a1035 + 1aac88c commit cf9cb6c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@ jobs:
needs: lint
strategy:
matrix:
name: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
name: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
include:
- name: "3.7"
python: "3.7"
tox_env: "py37"
- name: "3.8"
python: "3.8"
tox_env: "py38"
Expand All @@ -33,10 +30,13 @@ jobs:
- name: "3.11"
python: "3.11"
tox_env: "py311"
- name: "3.12"
python: "3.12"
tox_env: "py312"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install packages
Expand All @@ -52,7 +52,9 @@ jobs:
run: python -m coverage xml
- name: Upload coverage to Codecov
if: "matrix.use_coverage"
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
fail_ci_if_error: true
files: ./coverage.xml
Expand All @@ -62,12 +64,12 @@ jobs:
runs-on: ubuntu-latest
name: flake8
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install packages
run: pip install tox
- name: Run tests
- name: Run linter
run: tox -e flake8
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py36,py37,py38,py39,py310,311,flake8
envlist = py38,py39,py310,py311,py312,flake8
isolated_build = True
minversion = 3.20.0
distshare = {homedir}/.tox/distshare
Expand All @@ -12,6 +12,8 @@ setenv =
coverage: _TOX_COVERAGE_RUN=--cov
coverage: COVERAGE_FILE={toxinidir}/.coverage
coverage: COVERAGE_PROCESS_START={toxinidir}/.coveragerc
passenv =
CODECOV_TOKEN

[testenv:flake8]
deps = flake8
Expand Down

0 comments on commit cf9cb6c

Please sign in to comment.