forked from catcombo/jira2markdown
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 881 Bytes
/
ci.yml
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
name: CI
on: [ push, pull_request ]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install Poetry
run: |
pip install poetry
poetry config virtualenvs.path ~/.cache/pypoetry/virtualenvs
- name: Restore virtualenv from cache
id: cache
uses: actions/cache@v1
with:
path: ~/.cache/pypoetry/virtualenvs
key: poetry-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: poetry install
- name: Run linter
run: poetry run flake8
- name: Run tests
run: poetry run pytest