Skip to content

Commit

Permalink
Test on all versions with pytz
Browse files Browse the repository at this point in the history
  • Loading branch information
SijmenHuizenga committed Oct 23, 2023
1 parent e7e8be6 commit cd7a95d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,20 @@ jobs:
max-parallel: 6
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
pytz: ['', '-pytz']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}${{ matrix.pytz }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}${{ matrix.pytz }}
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install tox tox-gh-actions
- name: Tests
run: tox
- name: Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: python-${{ matrix.python-version }}${{ matrix.pytz }}
COVERALLS_FLAG_NAME: python-${{ matrix.python-version }}
COVERALLS_PARALLEL: true
run: |
pip3 install coveralls
Expand Down
15 changes: 5 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,11 @@ skip_missing_interpreters = true

[gh-actions]
python =
3.7: py37
3.7-pytz: py37-pytz
3.8: py38
3.8-pytz: py38-pytz
3.9: py39
3.9-pytz: py39-pytz
3.10: py310
3.10-pytz: py310-pytz
3.11: py311
3.11-pytz: py311-pytz
3.7: py37, py37-pytz
3.8: py38, py38-pytz
3.9: py39, py39-pytz
3.10: py310, py310-pytz
3.11: py311, py311-pytz

[testenv]
deps =
Expand Down

0 comments on commit cd7a95d

Please sign in to comment.