Daily cron #150
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: Daily cron | |
on: | |
workflow_dispatch: | |
schedule: | |
# run every day at 3am UTC | |
- cron: '0 3 * * *' | |
pull_request: | |
# We also want this workflow triggered if the 'Extra CI' label is added | |
# or present when PR is updated | |
types: | |
- synchronize | |
- labeled | |
push: | |
# We want this workflow to always run on release branches as well as | |
# all tags since we want to be really sure we don't introduce | |
# regressions on the release branches, and it's also important to run | |
# this on pre-release and release tags. | |
branches: | |
- 'v*' | |
tags: | |
- '*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
ARCH_ON_CI: "normal" | |
IS_CRON: "true" | |
permissions: | |
contents: read | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
if: (github.repository == 'astropy/astropy' && (github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'Extra CI'))) | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: Bundling with pyinstaller | |
os: ubuntu-latest | |
python: '3.10' | |
toxenv: pyinstaller | |
- name: Python 3.12 with all optional dependencies and pre-releases | |
os: ubuntu-latest | |
python: '3.12' | |
toxenv: py312-test-alldeps-predeps | |
toxargs: -v | |
toxposargs: --remote-data=any | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install language-pack-de and tzdata | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
sudo apt-get update | |
sudo apt-get install language-pack-de tzdata | |
- name: Install Python dependencies | |
run: python -m pip install --upgrade tox | |
- name: Run tests | |
run: tox ${{ matrix.toxargs}} -e ${{ matrix.toxenv}} -- ${{ matrix.toxposargs}} |