-
Notifications
You must be signed in to change notification settings - Fork 28
31 lines (25 loc) · 760 Bytes
/
Copy pathtest.yml
File metadata and controls
31 lines (25 loc) · 760 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
name: Run Tests on Pull Request
on:
pull_request:
branches:
- main
jobs:
test:
#Fix version needed to use python 3.6 https://github.com/actions/setup-python/issues/544
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
pip install --upgrade pip
pip install -r requirements-test.txt
- name: Run Tests
run: python -m unittest discover tests/