-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 864 Bytes
/
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
name: Testing with GitHub Actions
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
test_suite: [test_ast, test_st, test_all]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python 3.8
if: matrix.os == 'ubuntu-latest'
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Setup Python 3.8 on Windows
if: matrix.os == 'windows-latest'
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: |
make install
- name: Test with pytest (${{ matrix.test_suite }})
run: |
make ${{ matrix.test_suite }}
- name: Cleanup after test
run: |
make clean