Skip to content

Commit

Permalink
CI: Add Python 3.10 and 3.11, update actions, run weekly
Browse files Browse the repository at this point in the history
A bit of CI maintenance:
- Add Python 3.10 and 3.11 runs, and update the PyPy run to PyPy 3.9
- Update the used actions to the latest versions
- Also run on pushes, when manually triggered (workflow_dispatch)
  • Loading branch information
willianrocha committed Oct 2, 2023
1 parent cebc3f7 commit c805dc3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
name: Tests and Codecov
on: pull_request
on:
push:
pull_request:
workflow_dispatch:

jobs:
run_tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, pypy-3.7]
python-version: [3.7, 3.8, 3.9, 3.10, 3.11, pypy-3.9]

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -30,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install dependencies
run: |
Expand All @@ -44,7 +48,7 @@ jobs:
run: coverage xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
files: coverage.xml
fail_ci_if_error: true
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
[tox]
envlist = py37, py38, py39, pypy3, flake8
envlist = py37, py38, py39, py310, py311, pypy3, flake8

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

[testenv]
setenv =
Expand Down

0 comments on commit c805dc3

Please sign in to comment.