File tree 1 file changed +13
-8
lines changed
1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change 1
1
name : CI (Python)
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ branches :
9
+ - master
4
10
5
11
jobs :
6
- build :
12
+ test :
7
13
runs-on : ubuntu-latest
8
14
strategy :
9
15
matrix :
10
16
python-version : [3.7, 3.8, 3.9]
11
17
steps :
12
- - name : Checkout
18
+ - name : Check out
13
19
uses : actions/checkout@v2
14
20
- name : Set up Python ${{ matrix.python-version }}
15
21
uses : actions/setup-python@v2
16
22
with :
17
23
python-version : ${{ matrix.python-version }}
24
+ - name : Install Poetry
25
+ uses : abatilo/actions-poetry@v2.1.2
18
26
- name : Cache Pip
19
27
uses : actions/cache@v2
20
28
with :
24
32
${{ runner.os }}-pip-
25
33
${{ runner.os }}-
26
34
- name : Install dependencies
27
- run : |
28
- pip install poetry
29
- poetry install
35
+ run : poetry install
30
36
- name : Test with Pytest
31
- run : |
32
- poetry run pytest
37
+ run : poetry run pytest
You can’t perform that action at this time.
0 commit comments