-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (36 loc) · 1.22 KB
/
CI_conda.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
name: CI with conda
on: push
jobs:
unit-tests:
name: Python ${{ matrix.python-version }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: 'latest'
environment-file: environment.yml
auto-update-conda: true
python-version: ${{ matrix.python-version }}
auto-activate-base: false
activate-environment: elmada
- name: Run pytest and generate coverage report
env:
ENTSOE_API_KEY: ${{ secrets.ENTSOE_API_KEY }}
MORPH_API_KEY: ${{ secrets.MORPH_API_KEY }}
QUANDL_API_KEY: ${{ secrets.QUANDL_API_KEY }}
shell: bash -l {0}
run: |
pytest -v --cov=elmada --cov-report=xml -m="not apikey" .
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v1
with:
# token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
verbose: true