-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (35 loc) · 930 Bytes
/
unit.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
name: pytest
on:
push:
branches:
- '*'
jobs:
pytest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, ubuntu-22.04]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Miniconda & Environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.11
auto-update-conda: true
activate-environment: moranpycess-dev
environment-file: environment.yml
auto-activate-base: false
- name: Conda Info
shell: bash -l {0}
run: |
conda info -a
conda list
- name: Unit-Test + Coverage
shell: bash -l {0}
run: make test
- name: Submit Report to Codecov
shell: bash -l {0}
run: |
CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }}
bash <(curl -s https://codecov.io/bash)