-
Notifications
You must be signed in to change notification settings - Fork 63
46 lines (43 loc) · 1.37 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
41
42
43
44
45
46
name: run-tests
on:
push:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8']
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Extract test files
run: ./.github/scripts/extract_files.sh
env:
FILES_PASSPHRASE: ${{ secrets.FILES_PASSPHRASE }}
- name: Install dependencies
run: poetry install -E mupdf
- name: Test with pytest
run: poetry run pytest
env:
BAD_CAS_FILE: ${{ secrets.BAD_CAS_FILE }}
CAMS_CAS_FILE: ${{ secrets.CAMS_CAS_FILE }}
CAMS_CAS_FILE_NEW: ${{ secrets.CAMS_CAS_FILE_NEW }}
CAMS_CAS_SUMMARY: ${{ secrets.CAMS_CAS_SUMMARY }}
KFINTECH_CAS_SUMMARY: ${{ secrets.KFINTECH_CAS_SUMMARY }}
CAMS_CAS_PASSWORD: ${{ secrets.CAMS_CAS_PASSWORD }}
KFINTECH_CAS_FILE: ${{ secrets.KFINTECH_CAS_FILE }}
KFINTECH_CAS_FILE_NEW: ${{ secrets.KFINTECH_CAS_FILE_NEW }}
KFINTECH_CAS_PASSWORD: ${{ secrets.KFINTECH_CAS_PASSWORD }}
- name: Upload coverage report to codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml