-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #318 from cgre-aachen/dev_gemgis2
Updating tests and enhance coverage
- Loading branch information
Showing
18 changed files
with
438 additions
and
1,054 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,49 @@ | ||
name: GemGIS CI | ||
|
||
on: | ||
push: | ||
branches: [ main, dev_aj, dev_alex ] | ||
|
||
pull_request: | ||
branches: [ main ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
name: Pytest | ||
on: [push] | ||
jobs: | ||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
testing: | ||
name: Testing | ||
runs-on: "ubuntu-latest" | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
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 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: gemgis_testing | ||
environment-file: environment.yml | ||
python-version: 3.9 | ||
channels: conda-forge | ||
- name: List dependencies | ||
run: | | ||
conda list pygeos | ||
conda list geopandas | ||
conda list rasterio | ||
conda list pyvista | ||
conda list gemgis | ||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements_optional.txt | ||
- name: Run tests with pytest | ||
run: | | ||
pytest | ||
- 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 |
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
213 changes: 108 additions & 105 deletions
213
docs/getting_started/tutorial/12_visualizing_cross_sections_in_pyvista.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.