Skip to content

Commit 9aea9ca

Browse files
committed
tweak matrix testing
1 parent 5986766 commit 9aea9ca

File tree

3 files changed

+203
-9
lines changed

3 files changed

+203
-9
lines changed

.github/workflows/ci.yml

+26-8
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,17 @@ jobs:
1010
name: Consult black on python formatting
1111

1212
steps:
13-
- uses: actions/checkout@v1
14-
- uses: actions/setup-python@v1
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-python@v2
1515
with:
1616
python-version: 3.7
1717
- uses: Gr1N/setup-poetry@v2
18+
- uses: actions/cache@v1
19+
with:
20+
path: ~/.cache/pypoetry/virtualenvs
21+
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
22+
restore-keys: |
23+
${{ runner.os }}-poetry-
1824
- name: Install dependencies
1925
run: make setup
2026
- name: Run black
@@ -25,25 +31,37 @@ jobs:
2531

2632
name: Run tests with tox
2733

34+
strategy:
35+
matrix:
36+
python-version: [ '3.6', '3.7' ]
37+
2838
steps:
29-
- uses: actions/checkout@v1
30-
- uses: actions/setup-python@v1
39+
- uses: actions/checkout@v2
40+
- uses: actions/setup-python@v2
3141
with:
32-
python-version: 3.7
42+
python-version: ${{ matrix.python-version }}
3343
- uses: Gr1N/setup-poetry@v2
44+
- uses: actions/cache@v1
45+
with:
46+
path: ~/.cache/pypoetry/virtualenvs
47+
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
48+
restore-keys: |
49+
${{ runner.os }}-poetry-
3450
- name: Install dependencies
3551
run: |
3652
sudo apt install protobuf-compiler libprotobuf-dev
3753
make setup
3854
- name: Run tests
39-
run: make full-test
55+
run: |
56+
make generate
57+
make test
4058
4159
build-release:
4260
runs-on: ubuntu-latest
4361

4462
steps:
45-
- uses: actions/checkout@v1
46-
- uses: actions/setup-python@v1
63+
- uses: actions/checkout@v2
64+
- uses: actions/setup-python@v2
4765
with:
4866
python-version: 3.7
4967
- uses: Gr1N/setup-poetry@v2

poetry.lock

+176-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ protobuf = { version = "^3.12.2", optional = true }
2121
stringcase = "^1.2.0"
2222

2323
[tool.poetry.dev-dependencies]
24+
bpython = "^0.19"
2425
mypy = "^0.770"
2526
pytest = "^5.4.2"
2627
pytest-asyncio = "^0.12.0"

0 commit comments

Comments
 (0)