Version bump #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: | | |
!(github.event_name == 'push' && contains(github.event.head_commit.message, '[skip ci]')) | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.7" | |
- name: Install poetry | |
run: curl -sSL https://install.python-poetry.org | python3 - | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pypoetry/virtualenvs | |
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} | |
restore-keys: | | |
${{ runner.os }}-poetry- | |
- name: Install dependencies | |
run: /home/runner/.local/bin/poetry install | |
- name: Run tests | |
run: /home/runner/.local/bin/poetry run pytest --cov=preston --cov-report=xml | |
- name: Upload coverage | |
run: bash <(curl -s https://codecov.io/bash) |