-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.13 KB
/
run_tests.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
name: Run Unit Tests via Pytest
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
env:
GIT_LFS_SKIP_SMUDGE: 1
- name: Set up Python 3.11
uses: actions/[email protected]
with:
python-version: 3.11
cache: poetry
- name: Install dependencies
run: |
python3 -m pip install -U pip poetry
poetry --version
poetry check --no-interaction
poetry config virtualenvs.in-project true
poetry install --no-interaction
- name: Pull LFS (GADM) files for unit tests
run: git lfs pull --include "Database/data/gadm_world.csv"
timeout-minutes: 60
env:
GIT_TRACE: 1
- name: Pull LFS (UNSD) files for unit tests
run: git lfs pull --include "Database/data/UNSD — Methodology.csv"
timeout-minutes: 60
env:
GIT_TRACE: 1
- name: Run tests
run: poetry run pytest -ra -s tests