-
Notifications
You must be signed in to change notification settings - Fork 4
59 lines (51 loc) · 1.39 KB
/
tests.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
name: Tests
on:
push:
pull_request:
branches:
- master
jobs:
tests:
name: tests on ${{ matrix.python-version }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: true
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
experimental: [false]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install os dependencies
run: |
sudo apt-get -qq update
sudo apt-get install -yq \
libportmidi-dev \
libsdl-image1.2-dev \
libsdl-mixer1.2-dev \
libsdl-ttf2.0-dev \
libsdl1.2-dev \
libsoundtouch-dev \
libvorbis-dev
- name: Install python dependencies
run: |
pip install coverage pytest pytest-cov
pip install -r requirements.txt
- name: Run tests
run: |
python setup.py check
pytest --cov=fretwork
env:
SDL_AUDIODRIVER: dummy
- name: Upload coverage
if: ${{ matrix.python-version == '3.7' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install coveralls
coveralls --service=github