-
Notifications
You must be signed in to change notification settings - Fork 71
47 lines (39 loc) · 1.11 KB
/
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
40
41
42
43
44
45
46
47
name: Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install sass
run: |
sudo apt-get update
sudo apt-get install --yes ruby-sass build-essential
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install -e '.[dev]'
whotracksme --help
- name: Fetch test data assets
run: |
aws --no-sign-request s3 cp --recursive s3://data.whotracks.me/2017-06 2017-06
aws --no-sign-request s3 cp --recursive s3://data.whotracks.me/2021-06 2021-06
working-directory: whotracksme/data/assets
env:
AWS_DEFAULT_REGION: us-east-1
- name: Run tests
run: |
pytest
- name: Check build
run: |
whotracksme website