-
Notifications
You must be signed in to change notification settings - Fork 52
51 lines (42 loc) · 1.1 KB
/
functional-tests.yml
File metadata and controls
51 lines (42 loc) · 1.1 KB
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
name: Run OS tests
on:
push:
branches: [ main ]
pull_request:
jobs:
tests:
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
shell: [bash]
include:
- platform: windows-latest
shell: powershell
- platform: windows-latest
shell: cmd
defaults:
run:
shell: ${{ matrix.shell }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/setup-python@v2
with:
python-version: '3.6.7'
- name: Set up environment
run: |
pip install pytest
git config --global user.name "Github Actions"
git config --global user.email "[email protected]"
- name: Synthesize level
run: |
python ./make_level.py -y testlevel1 "Test Level 1" testskill "Test Skill"
python ./make_level.py -y testlevel2 "Test Level 2" testskill
- name: Install Git Gud
run: |
pip install .
- name: Run tests
run: python -m pytest gitgud