-
Notifications
You must be signed in to change notification settings - Fork 35
49 lines (46 loc) · 1.1 KB
/
Copy pathrun-tests.yml
File metadata and controls
49 lines (46 loc) · 1.1 KB
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
45
46
47
48
49
on:
push:
branches: [ '*' ]
paths:
- 'tests/**'
- 'var_dump/**'
- '.github/workflows/run-tests.yml'
pull_request:
branches: [ master ]
jobs:
run_tests:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
python-version: [3.7, 3.11]
name: Run unit tests
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: |
python -m unittest tests
run_tests_older_python:
runs-on: ubuntu-20.04
permissions:
contents: read
strategy:
matrix:
python-version: [ 3.5 ]
name: Run unit tests
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: |
python -m unittest tests