-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.11 KB
/
test.yaml
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
48
name: Tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
# When this workflow is queued, automatically cancel any previous running
# or pending jobs from the same branch
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
# Required shell entrypoint to have properly activated conda environments
defaults:
run:
shell: bash -l {0}
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Needed by codecov.io
- name: Install Environment
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: ci/environment.yml
environment-name: pandas-expr
extra-specs: |
python=${{ matrix.python-version }}
- name: Install pabdas-expr
run: python -m pip install -e . --no-deps
- name: Run tests
run: py.test --verbose --cov=pandas_expr --cov-report=xml
- name: Coverage
uses: codecov/codecov-action@v3