-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 789 Bytes
/
pytest.yml
File metadata and controls
35 lines (28 loc) · 789 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: Pytest
on:
workflow_call:
jobs:
pytest:
name: Pytest
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check Out Repo
uses: actions/checkout@v3
- name: Set Up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Set Python Path
run: echo "PYTHONPATH=$GITHUB_WORKSPACE/../" >> $GITHUB_ENV
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install Requirements
run: pip install -r requirements.txt -r dev-requirements.txt
- name: Run Pytest
run: python tests/run_pytest.py
- name: Upload Results
uses: actions/upload-artifact@v3
if: always()
with:
path: tests/results