-
Notifications
You must be signed in to change notification settings - Fork 14
54 lines (54 loc) · 1.7 KB
/
scheduled.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
46
47
48
49
50
51
52
53
54
name: benchmarks and validation
on:
schedule:
- cron: '0 1 * * *'
jobs:
checks:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
env:
GAMMAPY_DATA: /home/runner/work/gammapy-benchmarks/gammapy-benchmarks/gammapy-datasets/dev
steps:
- name: checkout repo
uses: actions/checkout@v2
- name: get env file
run: curl -O https://raw.githubusercontent.com/gammapy/gammapy/main/environment-dev.yml
- name: create and activate env
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: gammapy-dev
environment-file: environment-dev.yml
auto-update-conda: true
- name: install gammapy
run: |
pip install git+https://github.com/gammapy/gammapy.git#egg=gammapy
pip install psrecord
conda info
conda list
gammapy info
- name: download datasets
run: gammapy download datasets
- name: run benchmarks
run: |
cd benchmarks
python make.py run-benchmark all
cd results
python track_evolution.py
- name: commit changes
uses: stefanzweifel/git-auto-commit-action@v4.1.6
if: success()
with:
commit_author: GitHub Actions <actions@github.com>
commit_message: commit results from benchmarks
# - name: run validation
# run: |
# cd validation
# python make.py run-validation all
- name: slack notification
uses: rtCamp/action-slack-notify@v2
if: failure()
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_MESSAGE: 'Benchmarks and validations checks failed'