-
Notifications
You must be signed in to change notification settings - Fork 17
41 lines (34 loc) · 1.11 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
name: pandas-flavor tests
on: [pull_request]
jobs:
run-tests:
runs-on: ubuntu-latest
name: Run pandas-flavor test suite
# https://github.com/marketplace/actions/setup-miniconda#use-a-default-shell
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout repository
uses: actions/checkout@v2
# See: https://github.com/marketplace/actions/setup-miniconda
- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
miniforge-variant: Mambaforge
channels: conda-forge
activate-environment: pandas-flavor
environment-file: environment.yml
use-mamba: true
- name: Run unit tests
run: |
conda activate pandas-flavor
python -m pip install -e .
pytest
# # https://github.com/codecov/codecov-action
# - name: Upload code coverage
# uses: codecov/codecov-action@v2
# with:
# # fail_ci_if_error: true # optional (default = false)
# verbose: true # optional (default = false)