-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (28 loc) · 903 Bytes
/
testing.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
# This workflow will install Python dependencies and run tests.
name: Testing
on:
push:
paths:
- analysis/**.py
- database/**.py
- ingestion/**.py
workflow_dispatch:
jobs:
Testing:
strategy:
matrix:
python-version: [3.11]
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f dev_requirements.txt ]; then pip install -r dev_requirements.txt; fi
- name: Testing
run: |
python -m pytest -v