-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (30 loc) · 916 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
name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Set git config to use personal access token in secrets
run: |
git config --global url."https://${{secrets.PERSONAL_ACCESS_TOKEN}}@github.com/climatepolicyradar/explorer.git".insteadOf "https://github.com/climatepolicyradar/explorer.git"
- name: Install dependencies
run: |
python -m pip install "poetry==1.2.2" && poetry install
- name: Run test suite
run: |
poetry run python -m pytest \
--nbmake-find-import-errors \
--nbmake-timeout=20 -vvv