Skip to content

Commit 36e9d08

Browse files
authored
Create testing.yml
1 parent 4ac659a commit 36e9d08

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.github/workflows/testing.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Python package
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-latest, macos-11, windows-latest]
17+
python-version: [3.7, 3.8] #3.9 only failing for tables on macos and windows; mwm 6302021
18+
include:
19+
- os: ubuntu-latest
20+
path: ~/.cache/pip
21+
- os: macos-11
22+
path: ~/Library/Caches/pip
23+
- os: windows-latest
24+
path: ~\AppData\Local\pip\Cache
25+
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v2
29+
30+
- name: Set up Python ${{ matrix.python-version }}
31+
uses: actions/setup-python@v2
32+
with:
33+
python-version: ${{ matrix.python-version }}
34+
35+
- name: Install dependencies
36+
run: |
37+
python -m pip install --upgrade pip setuptools wheel
38+
pip install -r requirements.txt
39+
- name: Install ffmpeg
40+
run: |
41+
if [ "$RUNNER_OS" == "Linux" ]; then
42+
sudo apt-get update
43+
sudo apt-get install ffmpeg
44+
elif [ "$RUNNER_OS" == "macOS" ]; then
45+
brew install ffmpeg
46+
else
47+
choco install ffmpeg
48+
fi
49+
shell: bash
50+
51+
- name: Run pytest tests
52+
run: |
53+
pip install pytest
54+
python -m pytest
55+
- name: Run functional tests
56+
run: |
57+
pip install git+git://github.com/${{ github.repository }}.git@${{ github.sha }}
58+
dlc-live-test

0 commit comments

Comments
 (0)