-
Notifications
You must be signed in to change notification settings - Fork 70
52 lines (43 loc) · 1.19 KB
/
push.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
43
44
45
46
47
48
49
50
51
52
name: build
on:
pull_request:
types: [opened, synchronize]
push:
branches: [master]
jobs:
tests:
# Ubuntu latest no longer installs Python 3.8 by default so install it
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
# - name: Cache packages
# uses: actions/cache@v2
# with:
# path: |
# ~/go/pkg/mod
# ~/.cache/go-build
# vendor
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
# restore-keys: |
# ${{ runner.os }}-go-
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: '3.8'
cache: 'pipenv'
- name: Install
run: pip install pipenv
- name: Install dependencies
run: pipenv install --dev
- name: Run tests
run: make test
- name: Publish test coverage to coverage site
uses: codecov/codecov-action@v2
with:
files: ./coverage.xml
name: dbldatagen
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}