-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 868 Bytes
/
pythonapp.yml
File metadata and controls
35 lines (32 loc) · 868 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
name: Python Unittests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
python_matrix:
strategy:
matrix:
version: ['3.7', '3.8', '3.9', '3.10', '3.11']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Set git identity
run: |
git config --global user.email "testrunner@github.local"
git config --global user.name "Test Runner"
- name: Run tests
run: |
cd $GITHUB_WORKSPACE
python -m unittest discover -p '*.py' -s tests