forked from ssc-oscar/oscar.py
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (29 loc) · 1013 Bytes
/
test.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
name: Run unit tests on every push
on: [push, pull_request]
jobs:
test:
name: Python ${{ matrix.python-version }} tests
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.6, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies (Python ${{ matrix.python-version }})
run: |
python -m pip install --upgrade pip
pip install typing cython setuptools>=18.0
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests on Python ${{ matrix.python-version }}
run: make test_local