-
Notifications
You must be signed in to change notification settings - Fork 24
75 lines (67 loc) · 1.87 KB
/
testing.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
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
name: testing
on:
workflow_dispatch:
push:
branches:
- master
- develop
jobs:
test-linux:
runs-on: ubuntu-latest
steps:
- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: checkout repository
uses: actions/checkout@v3
- name: install dependencies
run: |
pip install -r requirements.txt && \
pip install pytest
- name: patch version
run: |
chmod u+x ./releng/patch_version.sh && \
./releng/patch_version.sh
- name: test version
run: cat ./graxpert/version.py
- name: Run tests
run: python -m pytest --import-mode=append tests/
test-windows:
runs-on: windows-latest
steps:
- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: checkout repository
uses: actions/checkout@v3
- name: install dependencies
run: |
pip install -r requirements.txt && `
pip install pytest
- name: patch version
run: ./releng/patch_version.ps1
- name: test version
run: type ./graxpert/version.py
- name: Run tests
run: python -m pytest --import-mode=append tests/
test-macos-x86_64:
runs-on: macos-11
steps:
- name: setup python
run: brew install [email protected]
- name: checkout repository
uses: actions/checkout@v3
- name: install dependencies
run: |
pip3 install -r requirements.txt && \
pip3 install pytest
- name: patch version
run: |
chmod u+x ./releng/patch_version.sh && \
./releng/patch_version.sh
- name: test version
run: cat ./graxpert/version.py
- name: Run tests
run: python3 -m pytest --import-mode=append tests/