-
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.02 KB
/
tests.yml
File metadata and controls
44 lines (37 loc) · 1.02 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
name: Tests
on:
push:
pull_request:
branches:
- master
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["2.7", "3.7", "3.8", "3.9", "3.10"]
steps:
- name: checkout
uses: actions/checkout@v2
- name: install python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: install os dependencies
run: |
sudo apt-get -qq update
sudo apt-get -yq install \
freeglut3-dev \
libogg-dev \
libswscale-dev \
libtheora-dev
- name: install python dependencies
run: |
python -m pip install -r requirements.txt
python -m pip install pytest
- name: run tests
run: |
python setup.py build_ext --inplace --force
python -c "from videoplayer import _VideoPlayer; print(_VideoPlayer.__version__)"
pytest .