Cron Testing #1114
Workflow file for this run
This file contains hidden or 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
| # Runs all tests on master everyday at 10 am (UTC time) | |
| name: Cron Testing | |
| defaults: | |
| run: | |
| shell: bash | |
| on: # Runs on master branch on Mondays at 3am UTC time | |
| schedule: | |
| - cron: '* 12 * * Sat' | |
| jobs: | |
| tests: | |
| name: ${{ matrix.os }} / ${{ matrix.python-version }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04, ubuntu-24.04, macos-latest, windows-latest] | |
| python-version: ["3.10", 3.11, 3.12, 3.x] # crons should always run latest python hence 3.x | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: pyproject.toml | |
| - name: Set up Python ${{ matrix.python-version }} | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Install package with test dependencies | |
| run: uv sync --all-extras --dev | |
| - name: Get acc-models-lhc | |
| run: git clone -b 2022 https://gitlab.cern.ch/acc-models/acc-models-lhc.git --depth 1 | |
| - name: Run Tests | |
| run: make tests |