Skip to content

Commit

Permalink
Merge branch feature/github tests (#1)
Browse files Browse the repository at this point in the history
* Add GitHub action for tests

* Simplify, remove tox-gh for testing

* Fix runs-on

* Fix python-version variable
  • Loading branch information
edeca authored Jan 7, 2025
1 parent 83da3de commit 8ba5d68
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/tox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Run Python tests with tox

on: [push]

jobs:
test:
name: test with ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: ["ubuntu-latest"]

steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install tox and any other packages
run: pip install tox
- name: Run tox
# Run tox using the version of Python in `PATH`
run: tox -e py
7 changes: 7 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
[tox]
envlist = py312

[gh]
python =
3.13 = 3.13, type, dev, pkg_meta
3.12 = 3.12
3.11 = 3.11
3.10 = 3.10

[testenv]
extras = tests
commands =
Expand Down

0 comments on commit 8ba5d68

Please sign in to comment.