-
Notifications
You must be signed in to change notification settings - Fork 189
57 lines (52 loc) · 1.53 KB
/
push_pull.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
55
56
57
name: run tests on mac
on:
push:
pull_request:
schedule:
- cron: '0 3 * * *'
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
regular_check:
runs-on: macos-12
if: github.event_name != 'schedule'
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup Python environment
uses: actions/[email protected]
with:
python-version: '3.8'
- name: Check without sanitizer
uses: ./.github/actions/build_and_check
with:
asan: false
ubsan: false
sanitizer_check:
permissions:
contents: read # to fetch code (actions/checkout)
issues: write # to create an issue
runs-on: macos-12
if: (github.event_name == 'schedule' && github.repository == 'espressomd/espresso')
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup Python environment
uses: actions/[email protected]
with:
python-version: '3.8'
- name: Check with sanitizer
uses: ./.github/actions/build_and_check
with:
asan: true
ubsan: true
- name: Setting job link variable
if: ${{ failure() }}
run: |
echo "job_link=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" >> $GITHUB_ENV
- uses: alialaa/issue-action@v1
if: ${{ failure() }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: Scheduled CI job has failed
body: ${{ env.job_link }}