Merge pull request #187 from ACCESS-Cloud-Based-InSAR/dev #704
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: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: extractions/netrc@v2 | |
with: | |
machine: urs.earthdata.nasa.gov | |
username: ${{ secrets.EARTHDATA_USERNAME }} | |
password: ${{ secrets.EARTHDATA_PASSWORD }} | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
init-shell: bash | |
environment-file: environment.yml | |
extra-specs: >- | |
python=${{ matrix.python-version }} | |
- name: Pytest in conda environment | |
shell: bash -l {0} | |
run: | | |
python -m pip install . | |
python -m ipykernel install --user --name topsapp_env | |
pytest . |