Skip to content

update testing

update testing #63

Workflow file for this run

name: Testing
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
setup-build:
name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10"]
test_file: ["tests/test_dcip.py", "tests/test_em.py", "tests/test_gpr.py", "tests/test_mag.py", "tests/test_seismic.py"]
steps:
- uses: actions/checkout@v2
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
activate-environment: geoana-test
channels: conda-forge
python-version: ${{ matrix.python-version }}
- name: Install Env
run: |
conda info
conda config --show
conda env create -f environment.yml
conda activate geosci-labs
conda install pytest
pip install testipynb
conda list
- name: Run Tests
shell: bash
run: |
conda activate geosci-labs
pytest ${{ matrix.test_file }}