Skip to content

Commit 3ffb7fb

Browse files
committed
Update Python workflow
1 parent cf743d9 commit 3ffb7fb

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/ci-python.yml

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
name: CI (Python)
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
410

511
jobs:
6-
build:
12+
test:
713
runs-on: ubuntu-latest
814
strategy:
915
matrix:
1016
python-version: [3.7, 3.8, 3.9]
1117
steps:
12-
- name: Checkout
18+
- name: Check out
1319
uses: actions/checkout@v2
1420
- name: Set up Python ${{ matrix.python-version }}
1521
uses: actions/setup-python@v2
1622
with:
1723
python-version: ${{ matrix.python-version }}
24+
- name: Install Poetry
25+
uses: abatilo/actions-poetry@v2.1.2
1826
- name: Cache Pip
1927
uses: actions/cache@v2
2028
with:
@@ -24,9 +32,6 @@ jobs:
2432
${{ runner.os }}-pip-
2533
${{ runner.os }}-
2634
- name: Install dependencies
27-
run: |
28-
pip install poetry
29-
poetry install
35+
run: poetry install
3036
- name: Test with Pytest
31-
run: |
32-
poetry run pytest
37+
run: poetry run pytest

0 commit comments

Comments
 (0)