-
Notifications
You must be signed in to change notification settings - Fork 20
65 lines (59 loc) · 1.76 KB
/
conda_cron.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: "conda_cron"
on:
workflow_dispatch:
schedule:
# At 07:00 UTC every day
- cron: "0 7 * * *"
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
defaults:
run:
shell: bash -leo pipefail {0}
jobs:
condacheck:
runs-on: ${{ matrix.OS }}
name: "daily conda check"
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'macos-latest']
python-version:
- "3.10"
- "3.11"
- "3.12"
steps:
- name: Setup Micromamba
uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '1.5.6-0'
micromamba-binary-path: ~/.local/bin/micromamba
environment-name: openfe
create-args: >-
python=${{ matrix.python-version }}
pip
jq
condarc: |
channels:
- jaimergp/label/unsupported-cudatoolkit-shim
- conda-forge
init-shell: bash
- name: "Install openfe + optional deps"
run: |
# get latest version from conda-forge
LATEST_VERSION=$(micromamba search --json openfe | jq '.result.pkgs[0].version')
echo "LATEST_VERSION: $LATEST_VERSION"
# Removing the quotes from the vesrion number
# https://mywiki.wooledge.org/BashGuide/Parameters#Parameter_Expansion
micromamba install openfe=${LATEST_VERSION//\"} pytest -c conda-forge
python -m pip install pytest-xdist
- name: "env info"
run: |
micromamba info
micromamba list
pip list
- id: run-tests
name: "Run tests"
run: |
# note: this only runs the fast tests
pytest -n auto --pyargs openfe openfecli