Nightly tests at latest release #95
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: Nightly tests at latest release | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 1 * * 1-5' | |
jobs: | |
setup: | |
name: Setup variables | |
runs-on: 'ubuntu-22.04' | |
outputs: | |
min_python: ${{ steps.vars.outputs.min_python }} | |
release_tag: ${{ steps.release.outputs.release_tag }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # history required so we can determine latest release tag | |
- name: Get last release tag from git | |
id: release | |
run: echo "release_tag=$(git describe --tags --abbrev=0 --match '[0-9]*.[0-9]*.[0-9]*')" >> $GITHUB_OUTPUT | |
- name: Get Python version for other CI jobs | |
id: vars | |
run: echo "min_python=$(cat .github/workflows/python-version-ci)" >> $GITHUB_OUTPUT | |
tests: | |
name: Tests | |
needs: setup | |
strategy: | |
matrix: | |
os: ['ubuntu-22.04'] | |
python: | |
- version: '${{needs.setup.outputs.min_python}}' | |
tox-env: 'nightly' | |
uses: ./.github/workflows/test.yml | |
with: | |
os-variant: ${{ matrix.os }} | |
python-version: ${{ matrix.python.version }} | |
tox-env: ${{ matrix.python.tox-env }} | |
checkout_ref: ${{ needs.setup.outputs.release_tag }} |