-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (34 loc) · 1.02 KB
/
run_pytest.yml
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
name: AutoTests
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1'
push:
branches: [ master ]
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# The job will be executed for every possible combination of variables.
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
os: [ ubuntu-latest, macos-latest, windows-latest ]
python-version: [ '3.12' ]
steps:
# Action for checking out a repo - https://github.com/actions/checkout
- name: Checkout repository
uses: actions/checkout@v4
# https://github.com/actions/setup-python
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install pytest
- name: Run UnitTests
run: bash run_tests.sh