-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (36 loc) · 938 Bytes
/
run_python_unit_tests.yml
File metadata and controls
44 lines (36 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
name: Python unit tests
on:
pull_request:
branches:
- "**"
tags-ignore:
- "**"
push:
branches:
- "**"
tags-ignore:
- "**"
jobs:
Test:
runs-on: ubuntu-latest
env:
PY_COLORS: "1"
strategy:
matrix:
include:
- {tox_env: "py3-django42", python: "3.11"}
- {tox_env: "py3-django42", python: "3.10"}
- {tox_env: "py3-django42", python: "3.9"}
- {tox_env: "py3-django42", python: "3.8"}
steps:
- name: Check-out repository
uses: actions/checkout@v3.3.0
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4.5.0
with:
python-version: ${{ matrix.python }}
- name: Install `tox`
run: python3 -m pip install tox
- name: Run unit tests
run: python3 -m tox -e ${{ matrix.tox_env }} -- --randomly-seed ${{ github.run_number }}