Skip to content

Commit df4fac8

Browse files
jaensvytas7
andcommitted
ci: Add Github actions tox workflow
(from PR #1) Co-authored-by: Vytautas Liuolia <vytautas.liuolia@gmail.com>
1 parent f37c659 commit df4fac8

2 files changed

Lines changed: 54 additions & 1 deletion

File tree

.github/workflows/tox.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Run various tox environments.
2+
name: tox
3+
4+
on:
5+
push:
6+
branches:
7+
- "*"
8+
pull_request:
9+
branches:
10+
- develop
11+
12+
jobs:
13+
run-tox:
14+
name: tox -e ${{ matrix.tox.env }}
15+
runs-on: "ubuntu-latest"
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
default-os:
20+
- "ubuntu-latest"
21+
tox:
22+
- env: py310-marshmallow3
23+
python-version: "3.10"
24+
- env: py311-marshmallow3
25+
python-version: "3.11"
26+
- env: py312-marshmallow3
27+
python-version: "3.12"
28+
- env: py313-marshmallow3
29+
python-version: "3.13"
30+
- env: py314-marshmallow3
31+
python-version: "3.14"
32+
33+
steps:
34+
- name: Checkout repo
35+
uses: actions/checkout@v4
36+
with:
37+
fetch-depth: 2
38+
39+
- name: Set up Python
40+
uses: actions/setup-python@v5
41+
with:
42+
python-version: ${{ matrix.tox.python-version }}
43+
cache: "pip"
44+
45+
- name: Install Python dependencies
46+
run: |
47+
python --version
48+
pip --version
49+
pip install tox
50+
tox --version
51+
52+
- name: Run tox
53+
run: tox -e ${{ matrix.tox.env }}

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ envlist=py{35,36,37,38,py3}-marshmallow{2,3}, cython-marshmallow{2,3}
55
deps=
66
-rrequirements/build_common.txt
77
marshmallow2: marshmallow <3.0
8-
marshmallow3: marshmallow==3.0.0rc6
8+
marshmallow3: marshmallow==3.26.1
99

1010
whitelist_externals=flake8
1111
commands=py.test --durations 3 --cov-report html --cov hug -n auto tests

0 commit comments

Comments
 (0)