forked from wildlife-dynamics/ecoscope
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.1 KB
/
tests.yml
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
45
46
47
name: Tests
on:
workflow_call:
inputs:
io:
type: string
required: true
os:
type: string
required: true
jobs:
Test:
name: ${{ inputs.os }}, ${{ inputs.io }}
runs-on: ${{ inputs.os }}
defaults:
run:
shell: bash -leo pipefail {0}
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup Micromamba
uses: mamba-org/[email protected]
with:
environment-file: environment.yml
cache-environment: true
init-shell: bash powershell
- name: Install our package
run: |
python -m pip install ".[all]"
- name: Test
env:
ER_USERNAME: ${{ secrets.ER_USERNAME }}
ER_PASSWORD: ${{ secrets.ER_PASSWORD }}
EE_ACCOUNT: ${{ secrets.EE_ACCOUNT }}
EE_PRIVATE_KEY_DATA: ${{ secrets.EE_PRIVATE_KEY_DATA }}
run: |
pytest -v -r s -m "${{ inputs.io }}" --color=yes --cov=ecoscope --cov-append --cov-report=xml
- name: Codecov
uses: codecov/codecov-action@v5