-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.01 KB
/
check.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
name: continuous integration
on: [push, pull_request]
# These keys should match the keys in .env.template
env:
AFFILS_DB_NAME: "affils.db"
AFFILS_DB_FILE: "${{ github.workspace }}/affils.db"
AFFILS_FLASK_SECRET_KEY: "gottaPutSomethingHereSoGitHubActionsWorks"
AFFILS_AWS_REGION: "us-west-2"
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: install Pipenv
run: pip install pipenv --user
- name: install dependencies
run: pipenv sync --dev # Installs all deps, including dev deps, from Pipfile.lock.
- name: seed the database
run: pipenv run invoke dbseed
- name: format
run: pipenv run invoke fmt
- name: lint
run: pipenv run invoke lint
- name: check types
run: pipenv run invoke types
- name: run tests
run: pipenv run invoke test