-
Notifications
You must be signed in to change notification settings - Fork 29
75 lines (70 loc) · 1.96 KB
/
pytest.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Run Pytest
on:
push:
paths-ignore:
- .gitignore
- .vscode/**
- .idea/**
- README.md
- version.txt
pull_request:
jobs:
run-pytest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set Up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Install GitHub plugins
run: |
pip install pytest-github-actions-annotate-failures
- name: Run Tests
run: pytest
run-pytest-verbose:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set Up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Run Tests
run: pytest --verbose -o log_cli=true
- name: Get APPDATA
run: echo ("APPDATA_TEMP=" + $env:LOCALAPPDATA + "\Temp") >> $env:GITHUB_ENV
- name: Upload Temp
uses: actions/upload-artifact@v3
with:
name: pytest-tmp
path: |
${{ env.APPDATA_TEMP }}/pytest**
- name: Upload Log
uses: actions/upload-artifact@v3
with:
name: pytest-log
path: |
${{ github.workspace }}/logs/pytest.log