-
Notifications
You must be signed in to change notification settings - Fork 66
45 lines (36 loc) · 1.33 KB
/
test-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
39
40
41
42
43
44
45
# Testing with conda - heavier than the PIP version,
# this includes different engines and plugins
name: Tests with Conda
on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
schedule:
- cron: '36 21 * * 6'
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
# - name: Configure Conda
# run: conda config --set channel_priority flexible
- name: Install Mamba
run: conda install -c conda-forge mamba
- name: Install Dependencies
run: mamba env update --file=devtools/conda-envs/latest.yaml --name=base
- name: pytest
run: pytest -v --cov=geometric geometric/tests/
# LPW 2022-10-03 Commenting out because GH Actions cannot test or cover Engine interfaces to commercial packages.
# Enabling Codecov upload for GH Actions would undercount the lines actually covered.
# - name: Codecov upload
# uses: codecov/codecov-action@v1
# with:
# flags: unittests-conda
# fail_ci_if_error: true
# verbose: true