-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (44 loc) · 1.2 KB
/
pytest-dev.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: pytest-dev
on:
push:
branches:
- '**' # matches every branch
- '!master' # excludes master
jobs:
pytest-dev:
name: pytest-dev
strategy:
matrix:
os:
- ubuntu-latest
python-version:
- "3.12"
- "3.10"
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.8-0
environment-file: requirements_dev.yml
environment-name: earthdaily
create-args: python=${{ matrix.python-version }}
cache-environment: true
post-cleanup: all
init-shell: >-
bash
- name: Installing the library
shell: bash -l {0}
run: |
pip install .
- name: Run tests and coverage
shell: bash -l {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