Skip to content

Commit

Permalink
Tests in gh-actions (#342)
Browse files Browse the repository at this point in the history
* gh-actions for test

* gh-actions for test

* gh-actions for test

* gh-actions for test

* gh-actions for test
  • Loading branch information
almazkun authored May 3, 2024
1 parent 00ecf89 commit c1f5b0c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Tox Test

on:
- push
- pull_request

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', pypy3.10]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox
15 changes: 14 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
[tox]
envlist = py34, py35, py36, py37, py38, py39, py310, pypy
envlist = py34, py35, py36, py37, py38, py39, py310, py311, py312, pypy

[gh-actions]
python =
3.4: py34
3.5: py35
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.11: py311
3.12: py312
pypy: pypy

[testenv]
deps =
coverage
Expand Down

0 comments on commit c1f5b0c

Please sign in to comment.