Skip to content

fix shell arg

fix shell arg #15

Workflow file for this run

name: pytest
on:
push:
branches:
- main
- dev
jobs:
pytest:
name: pytest
strategy:
matrix:
os:

Check failure on line 12 in .github/workflows/pytest.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/pytest.yaml

Invalid workflow file

You have an error in your yaml syntax on line 12
- { os: windows-latest, shell: pwsh },
- { os: ubuntu-latest, shell: bash },
- { os: macos-latest, shell: bash },
python-version:
- "3.10"
- "3.11"
runs-on: ${{ matrix.sys.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Make conda environment
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: 1.5.1-0
environment-file: requirements_dev.yml
environment-name: earthdaily
create-args: python=${{ matrix.python-version }}
cache-environment: true
post-cleanup: all
init-shell: >-
bash
powershell
- name: Installing the library
shell: bash -l {0}
run: |
pip install .
- name: Run tests and coverage
shell: ${{ matrix.sys.shell }} {0}
env:
EDS_CLIENT_ID: ${{ secrets.EDS_CLIENT_ID }}
EDS_AUTH_URL: ${{ secrets.EDS_AUTH_URL }}
EDS_SECRET: ${{ secrets.EDS_SECRET }}
EDS_API_URL: ${{ secrets.EDS_API_URL }}
run: pytest -v tests --cov=earthdaily