Skip to content

Commit 4d92a6c

Browse files
authored
Add GH Action for tests.
1 parent d55f9ab commit 4d92a6c

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/tests.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: pandas-flavor tests
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
run-tests:
7+
runs-on: ubuntu-latest
8+
name: Run pandas-flavor test suite
9+
10+
# https://github.com/marketplace/actions/setup-miniconda#use-a-default-shell
11+
defaults:
12+
run:
13+
shell: bash -l {0}
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
19+
# See: https://github.com/marketplace/actions/setup-miniconda
20+
- name: Setup miniconda
21+
uses: conda-incubator/setup-miniconda@v2
22+
with:
23+
auto-update-conda: true
24+
miniforge-variant: Mambaforge
25+
channels: conda-forge
26+
activate-environment: pandas-flavor
27+
environment-file: environment.yml
28+
use-mamba: true
29+
30+
- name: Run unit tests
31+
run: |
32+
conda activate pandas-flavor
33+
python -m pip install -e .
34+
pytest
35+
36+
# # https://github.com/codecov/codecov-action
37+
# - name: Upload code coverage
38+
# uses: codecov/codecov-action@v2
39+
# with:
40+
# # fail_ci_if_error: true # optional (default = false)
41+
# verbose: true # optional (default = false)

0 commit comments

Comments
 (0)