Skip to content

Commit 1fbe9db

Browse files
committed
refactor the action
1 parent cf43ffd commit 1fbe9db

1 file changed

Lines changed: 34 additions & 42 deletions

File tree

.github/workflows/main.yml

Lines changed: 34 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,42 @@
1+
name: Run Tox tests
2+
13
on:
24
push:
3-
branches:
4-
- master
5+
branches: [master]
56
pull_request:
6-
branches:
7-
- master
8-
9-
name: Run Tox tests
7+
branches: [master]
108

119
jobs:
12-
tox_test:
13-
name: Tox test
14-
steps:
15-
- name: Checkout kobo
16-
uses: actions/checkout@v2
17-
- name: Run Tox tests
18-
id: test
19-
uses: fedora-python/tox-github-action@main
20-
with:
21-
tox_env: ${{ matrix.tox_env }}
22-
dnf_install: python3-rpm /usr/bin/gcc /usr/bin/krb5-config /etc/mime.types --setopt=tsflags=nodocs
10+
tox:
11+
runs-on: ubuntu-latest
2312
strategy:
13+
fail-fast: false
2414
matrix:
25-
tox_env: [
26-
# This list has to be maintained manually :(
27-
# You can get it from `tox -l | sed "s/$/,/"`
28-
py36-django2,
29-
py36-django3,
30-
py38-django2,
31-
py38-django3,
32-
py39-django2,
33-
py39-django3,
34-
py310-django2,
35-
py310-django3,
36-
py311-django2,
37-
py311-django3,
38-
py38-django4,
39-
py39-django4,
40-
py310-django4,
41-
py311-django4,
42-
py312-django4,
43-
py310-django5,
44-
py311-django5,
45-
py312-django5,
46-
py39-bandit,
47-
]
15+
include:
16+
- python: 3.6
17+
tox_env: py36-django2
18+
- python: 3.8
19+
tox_env: py38-django3
20+
- python: 3.9
21+
tox_env: py39-django4
22+
- python: "3.10"
23+
tox_env: py310-django4
24+
- python: "3.11"
25+
tox_env: py311-django5
26+
- python: "3.12"
27+
tox_env: py312-django5
28+
- python: "3.11"
29+
tox_env: py39-bandit # bandit doesn't care about python version
30+
31+
steps:
32+
- uses: actions/checkout@v4
33+
34+
- uses: actions/setup-python@v5
35+
with:
36+
python-version: ${{ matrix.python }}
37+
38+
- run: pip install tox
39+
40+
- name: Run tox
41+
run: tox -e ${{ matrix.tox_env }}
4842

49-
# Use GitHub's Linux Docker host
50-
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)