-
Notifications
You must be signed in to change notification settings - Fork 12
33 lines (33 loc) · 835 Bytes
/
main.yml
File metadata and controls
33 lines (33 loc) · 835 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
name: Main
on:
push:
pull_request:
schedule:
- cron: "0 4 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pipenv
pipenv install --dev
- if: ${{ github.ref == 'refs/heads/master' }}
name: Build data
run: pipenv run build
env:
GOOGLE_SERVICE_ACCOUNT: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
- name: Run tests
run: pipenv run test -v
- name: Build HTML
run: pipenv run freeze
- if: ${{ github.ref == 'refs/heads/master' }}
name: Deploy
run: pipenv run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}