Skip to content

Commit

Permalink
update pytest.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasK committed Oct 31, 2023
1 parent 3332324 commit 4819589
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -1,37 +1,36 @@
name: pytest

on:
push:
branches:
- [main,dev]

- - main
- dev
jobs:
pytest:
runs-on: ubuntu-latest
name: pytest
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- "3.10"
- "3.11"
- "3.12"

strategy: null
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- "3.10"
- "3.11"
- "3.12"
runs-on: ${{ matrix.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
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'
post-cleanup: all
init-shell: bash
- name: Installing the library
shell: bash -l {0}
Expand All @@ -40,8 +39,8 @@ jobs:
- name: Run tests and coverage
shell: micromamba-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
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

0 comments on commit 4819589

Please sign in to comment.