-
-
Notifications
You must be signed in to change notification settings - Fork 16
39 lines (34 loc) · 995 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
32
33
34
35
36
37
38
39
name: Unit and E2E Testing
on:
push:
branches:
- "dev"
- "master"
pull_request:
branches:
- "dev"
- "master"
jobs:
testing:
name: Code Testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@master
with:
python-version: 3.9
- name: Preparing the environment
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; else python -m pip install beautifulsoup4 requests pydantic expiringdict pytest pytest-cov; fi
- name: Starting Testing Suites
run: |
ENMA_CACHING_STATE=disabled \
pytest --cov=. --cov-report=xml ./tests
- name: Upload Report to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: pytest