-
Notifications
You must be signed in to change notification settings - Fork 28
45 lines (39 loc) · 1.14 KB
/
ci.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
name: Continuous Integration
on: [push, pull_request]
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ENVIRONMENT: test
VERBOSE: true
TERM: xterm
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Show ref
run: |
echo "Checking out $GITHUB_REF..."
- uses: actions/setup-python@v2
name: Set up Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade PIP and packages
run: |
python -m pip install --upgrade pip setuptools wheel
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
python setup.py develop
- name: Run Tests
run: |
python -m tox -e py$(echo "${{ matrix.python-version }}" | tr -d '.')
- name: Run Coverage
run: |
coveralls --service github