-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (38 loc) · 1.17 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
name: Run tests
on: [push]
jobs:
main:
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- python-version: 3.8
- python-version: 3.9
steps:
- uses: actions/checkout@v3
- name: Checkout Cached Geoconnex Namespace
run: |
git clone -b master https://github.com/internetofwater/geoconnex.us.git geoconnex.us
cd geoconnex.us
git checkout e0e1c2ba0d023bfd80f3e6d76c85c01fab35c581
- uses: actions/setup-python@v2
name: Setup Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements 📦
env:
SOURCE_REPO: geoconnex.us
run: |
pip3 install -r requirements.txt
pip3 install -r requirements-dev.txt
python3 setup.py install
- name: run unit tests ⚙️
env:
SOURCE_REPO: geoconnex.us
SITEMAP_DIR: sitemap
run: |
pytest tests/test_util.py
pytest tests/test_handler.py
- name: run flake8 ⚙️
run: |
find . -type f -name "*.py" -not -path "./geoconnex.us/*" | xargs flake8