Skip to content

Commit 20ec9ec

Browse files
committed
add some more ci trappings
1 parent 933b4f5 commit 20ec9ec

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ on:
66
branches: '*'
77
jobs:
88
build:
9-
runs-on: ${{ matrix.os }}
9+
runs-on: ${{ matrix.os }}-latest
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
os: [ubuntu-latest, macos-latest, windows-latest]
14-
python-version: [ '3.6', '3.7', '3.8' ]
13+
os: [ubuntu, macos, windows]
14+
python-version: [ '3.6', '3.7', '3.8', '3.9', 'pypy3' ]
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v1
@@ -20,9 +20,28 @@ jobs:
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222
architecture: 'x64'
23+
- name: Upgrade packaging dependencies
24+
run: |
25+
pip install --upgrade pip setuptools wheel
26+
- name: Get pip cache dir
27+
id: pip-cache
28+
run: |
29+
echo "::set-output name=dir::$(pip cache dir)"
30+
- name: Cache pip
31+
uses: actions/cache@v1
32+
with:
33+
path: ${{ steps.pip-cache.outputs.dir }}
34+
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}
35+
restore-keys: |
36+
${{ runner.os }}-pip-${{ matrix.python-version }}-
37+
${{ runner.os }}-pip-
2338
- name: Install the Python dependencies
2439
run: |
25-
pip install -e .[test]
40+
pip install -e .[test] codecov
41+
- name: List installed packages
42+
run: |
43+
pip freeze
44+
pip check
2645
- name: Run the tests
2746
run: |
2847
pytest
@@ -32,3 +51,6 @@ jobs:
3251
- name: Run the tests for the examples
3352
run: |
3453
pytest examples/simple/tests/test_handlers.py
54+
- name: Coverage
55+
run: |
56+
codecov

0 commit comments

Comments
 (0)