-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1.06 KB
/
build.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
40
41
42
name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
fail-fast: false
matrix:
python-ver:
- "3.8"
env:
PYTHON: ${{ matrix.python-ver }}
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-ver }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-ver }}
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-ver }}-pip-${{ hashFiles('**/Pipfile*') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-ver }}-pip-${{ hashFiles('**/Pipfile*') }}
${{ runner.os }}-${{ matrix.python-ver }}-pip-
- name: Install dependencies
run: |
pip install -U pipenv
pipenv install --deploy --dev
- name: Run tests
run: pipenv run test
- uses: codecov/[email protected]
with:
name: build
env_vars: PYTHON
fail_ci_if_error: true