add keyring to tests #1076
Workflow file for this run
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
# This workflow runs tests for earthpy | |
# Because we want a conda environment - and that builds slower, | |
# we divided up tests from linting and docs to make for simpler install envts | |
name: Run Tests - Matrix OS / Python Version | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
runtests: | |
name: conda (${{ matrix.os }}, ${{ matrix.environment-file }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
environment-file: [ci/py38-env.yml, ci/py39-env.yml, ci/py310-env.yml] | |
exclude: | |
- environment-file: ci/py36-env.yml | |
os: windows-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: 'latest' | |
channels: conda-forge | |
channel-priority: true | |
auto-update-conda: false | |
auto-activate-base: false | |
environment-file: ${{ matrix.environment-file }} | |
activate-environment: earthpy-dev | |
- run: conda list | |
- run: python -m keyring NASA_EARTHDATA NED_USERNAME ${{ secrets.EARTHDATA_USERNAME }} | |
- run: python -m keyring NASA_EARTHDATA NED_USERNAME ${{ secrets.EARTHDATA_PASSWORD }} | |
- run: pytest -v --color=yes |