Format web.py functions #741
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |