Skip to content

Daily runs

Daily runs #596

Workflow file for this run

name: Daily runs
on:
schedule:
- cron: '0 5 * * *'
push:
paths:
- '.github/workflows/daily.yml'
- '.github/workflows/test.sh'
# adding comment to trigger this run (revert back!)
jobs:
linux-daily-unittests:
name: "Linux - daily unit tests - Python ${{ matrix.PYTHON_VERSION}} - ${{ matrix.NOTE }}"
runs-on: ubuntu-latest
env:
CI: True
strategy:
fail-fast: false
matrix:
include:
- PYTHON_VERSION: '3.9'
PANDAS_VERSION: 'nightly'
NUMPY_VERSION: 'nightly'
SCIPY_VERSION: 'nightly'
NOTE: 'Nightly Builds' # run once with nightlies
- PYTHON_VERSION: '3.9'
PANDAS_VERSION: ''
NUMPY_VERSION: ''
SCIPY_VERSION: ''
NOTE: 'Default Builds' # run once with normal dependencies
steps:
- name: Pull image
run: docker pull condaforge/mambaforge:latest
- name: Checkout branch
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: Run CI inside of container
uses: ./.github/actions/unittests
with:
python_version: ${{ matrix.PYTHON_VERSION }}
pandas_version: ${{ matrix.PANDAS_VERSION }}
numpy_version: ${{ matrix.NUMPY_VERSION }}
scipy_version: ${{ matrix.SCIPY_VERSION }}
- name: Issue on failure
uses: actions/github-script@v6
if: ${{ failure() }}
with:
script: |
github.rest.issues.listForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
state: "open",
labels: "[bot] Daily run"
}).then((issues) => {
if (issues.data.length === 0){
github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: "Daily run failure: Unit tests",
body: "The daily unit tests failed. See https://github.com/Quantco/tabmat/actions/runs/${{ github.run_id }} for details.",
assignees: ["MarcAntoineSchmidtQC"],
labels: ["[bot] Daily run"]
})
}
});