-
Notifications
You must be signed in to change notification settings - Fork 41
49 lines (49 loc) · 1.4 KB
/
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
40
41
42
43
44
45
46
47
48
49
name: Pytest
on: [push]
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
env:
OS: ${{ matrix.os }}
PYTHON: '3.10'
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install Dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
pip install owslib geopy gempy==2.3.1 xmltodict pypdf mplstereonet scikit-image scipy rioxarray tqdm
- name: Debug
run: |
ls -R # List all files and directories recursively
pwd # Print the current working directory
- name: Generate coverage report
working-directory: ./tests
run: |
pip install pytest
pip install pytest-cov
pytest --cov=./ --cov-report=xml
- name: Debug
run: |
ls -R # List all files and directories recursively
pwd # Print the current working directory
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./
#coverage/reports/
env_vars: OS,PYTHON
fail_ci_if_error: true
files: coverage.xml
#,./coverage2.xml,!./cache
flags: unittests
name: codecov-umbrella
verbose: true