-
Notifications
You must be signed in to change notification settings - Fork 5
40 lines (31 loc) · 900 Bytes
/
Copy pathpythonpackage.yml
File metadata and controls
40 lines (31 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Test
on: push
jobs:
python:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python_version: ['3.6', '3.7', '3.8']
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Install Python ${{ matrix.python_version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python_version }}
- name: Install Poetry
uses: dschep/install-poetry-action@v1.2
- name: Cache Poetry virtualenv
uses: actions/cache@v1
id: cache
with:
path: ~/.virtualenvs
key: poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
poetry-${{ hashFiles('**/poetry.lock') }}
- name: Install Dependencies
run: poetry install
- name: Test with pytest
run: poetry run pytest --verbose