Replace deprecated methods in discretize for new ones (#69) #182
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: Testing | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
setup-build: | |
name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }}, ${{ matrix.test-file }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest"] | |
python-version: ["3.8", "3.10"] | |
test-file: ["tests/test_dcip.py", "tests/test_em.py", "tests/test_gpr.py tests/test_seismic.py", "tests/test_inversion.py", "tests/test_gravity.py tests/test_mag.py"] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: environment-dev.yml | |
init-shell: >- | |
bash | |
powershell | |
create-args: >- | |
python=${{ matrix.python-version }} | |
cache-environment: true | |
post-cleanup: 'all' | |
- name: Run Tests | |
shell: micromamba-shell {0} | |
run: | | |
pip install -e . --no-deps | |
pytest ${{ matrix.test-file }} -v |