-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·35 lines (33 loc) · 903 Bytes
/
pythonapp.yml
File metadata and controls
executable file
·35 lines (33 loc) · 903 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
name: Python application
on: [push]
jobs:
build:
runs-on: ubuntu-latest
env:
PIP_DOWNLOAD_CACHE: $HOME/pip
POETRY_VIRTUALENVS_CREATE: 'false'
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Cache pip packages
uses: actions/cache@v1
with:
path: $HOME/pip
key: poetry-cache-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: |
pip install -q poetry==1.0.3 codecov
poetry install
- name: Lint with check_code
run: |
./check_code.sh
- name: Run unit tests
run: |
poetry run pytest -vs --cov=ancalagon
- name: Codecov
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
run: |
codecov --token=${{ secrets.CODECOV_TOKEN }}