-
Notifications
You must be signed in to change notification settings - Fork 9
54 lines (46 loc) · 1.32 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
name: "conda_cron"
on:
schedule:
# At 07:00 UTC every day
- cron: "0 7 * * *"
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
defaults:
run:
shell: bash -l {0}
jobs:
condacheck:
runs-on: ${{ matrix.OS }}-latest
name: "daily conda check"
strategy:
fail-fast: false
matrix:
os: ['ubuntu', 'macos']
python-version:
- "3.9"
- "3.10"
steps:
- name: setup micromamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: False
environment-name: gufe
channels: conda-forge
extra-specs: |
python==${{ matrix.python-version }}
- name: install gufe and deps
run: |
micromamba install gufe pytest pytest-xdist pip -c conda-forge
python -m pip install PyGithub
- id: run-tests
name: run tests
continue-on-error: true
run: pytest -n auto --pyargs gufe
- uses: actions/checkout@v3
- name: raise-or-close-issue
env:
CI_OUTCOME: ${{ steps.run-tests.outcome }}
TITLE: "[CI] CONDA CRON FAILURE ${{ matrix.os }} python ${{ matrix.python-version }}"
GITHUB_TOKEN: ${{ github.token }}
run: python devtools/raise-or-close-issue.py