4.2.2rc #2859
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |