-
Notifications
You must be signed in to change notification settings - Fork 21
39 lines (37 loc) · 894 Bytes
/
test.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
name: Test
on:
push:
branches:
- main
workflow_call:
secrets:
BEA_API_KEY:
required: true
FRED_API_KEY:
required: true
SEC_API_USER_AGENT:
required: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: pip install tox
- name: Run tests
env:
BEA_API_KEY: ${{ secrets.BEA_API_KEY }}
FRED_API_KEY: ${{ secrets.FRED_API_KEY }}
SEC_API_USER_AGENT: ${{ secrets.SEC_API_USER_AGENT }}
run: tox -e test
- name: Run static typechecks
run: tox -e typecheck
- name: Run lint
run: tox -e lint