Daily canary clean builds #658
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 canary clean builds | |
on: | |
schedule: | |
# run every day at 8am UTC, midnight PST, 3am eastern | |
- cron: '0 8 * * *' | |
env: | |
CONDA: /local/tmp/kbmod-runner/miniconda3 | |
jobs: | |
test-legacy: | |
name: Python ${{ matrix.python-version }} | |
runs-on: self-hosted | |
strategy: | |
fail-fast: true | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
defaults: | |
run: | |
shell: bash -leo pipefail {0} | |
steps: | |
- name: Setup environment | |
run: echo "/usr/local/cuda-12/bin" > $GITHUB_PATH | |
# setup-conda can only cache what setup-conda installs, | |
# we install via pip so we're re-downloading many of | |
# the same packages. This is good, but it's slow. | |
- name: Setup miniconda | |
uses: conda-incubator/[email protected] | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Linter | |
uses: psf/black@stable | |
with: | |
jupyter: true | |
- name: Build KBMOD | |
run: | | |
python -m pip install . | |
- name: Run tests | |
run: | | |
cd tests | |
python -m unittest -b | |
cd .. |