Skip to content

Commit 2e8cb28

Browse files
committed
testing tox
1 parent 305767d commit 2e8cb28

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
1-
name: Run tests
2-
3-
on:
4-
push:
5-
branches: [ master ]
6-
pull_request:
7-
branches: [ master ]
1+
name: Tests
2+
on: [push, pull_request]
83

94
jobs:
10-
build:
5+
tests:
116
runs-on: ubuntu-latest
127
strategy:
138
fail-fast: false
14-
matrix:
15-
python-version: ["3.6", "3.7", "3.8", "3.9"]
9+
matrix:
10+
include:
11+
- python-version: "3.6"
12+
env:
13+
TOXENV: "msgpack"
14+
- python-version: "3.6"
15+
env:
16+
TOXENV: "json"
17+
1618
steps:
1719
- uses: actions/checkout@v2
18-
- name: Set up Python ${{ matrix.python-version}}
20+
- name: Set up Python ${{ matrix.python-version }}
1921
uses: actions/setup-python@v2
2022
with:
21-
python-version: ${{matrix.python-version}}
23+
python-version: ${{ matrix.python-version }}
2224

23-
- name: Install dependencies
24-
run: |
25-
python -m pip install --upgrade pip
26-
pip install -r requirements.txt
27-
pip install -r requirements-test.txt
2825
- name: Run tests
26+
env: ${{ matrix.env }}
2927
run: |
30-
pytest
28+
pip install -U tox
29+
tox
30+
31+
- name: Upload coverage report
32+
run: bash <(curl -s https://codecov.io/bash)

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py{27,py,35,36,37}-{json,msgpack}
7+
envlist = py{36,37,38,39}-{json,msgpack}
88

99
[testenv]
1010
deps =

0 commit comments

Comments
 (0)