Skip to content

Commit

Permalink
github actions: Update the python versions tested
Browse files Browse the repository at this point in the history
since some of the version in the list are deprecated
we shouldn't try using them anymore
  • Loading branch information
fruch committed Apr 3, 2024
1 parent 5375c0d commit 9879ee3
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
- ubuntu-latest # ubuntu-18.04
# - macos-latest # macOS-10.14 casing trouble for requests-mock
# - windows-latest # windows-2019 causing trouble for the test_xdist
python-version: [2.7, 3.6, 3.7, 3.8, 3.9, '3.10']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -31,8 +31,11 @@ jobs:
- name: Test with tox
run: tox
- name: Upload coverage.xml to codecov
if: ${{ matrix.python-version == '3.8' }}
uses: codecov/codecov-action@v1
if: ${{ matrix.python-version == '3.12' }}
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

publish:
needs: [test]
Expand All @@ -42,12 +45,12 @@ jobs:
# alternatively, to publish when a GitHub Release is created, use the following rule:
# if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.8'
python-version: '3.12'

- name: Build sdist
run: python setup.py sdist
Expand Down

0 comments on commit 9879ee3

Please sign in to comment.