Skip to content

Scheduled Tests

Scheduled Tests #14

name: Scheduled Tests
on:
schedule:
- cron: '30 1 5 * *' # runs on the fifth day of the month at 1:30 UTC
workflow_dispatch: # manual execution
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"]
steps:
- name: Checkout utils repo
uses: actions/checkout@v6
- name: Checkout template database repo
uses: actions/checkout@v6
with:
repository: astrodbtoolkit/astrodb-template-db
path: tests/astrodb-template-db
- name: Check ADS_TOKEN
shell: bash
env:
ADS_TOKEN: ${{ secrets.ADS_TOKEN }}
run: |
if [[ -z "${ADS_TOKEN}" ]]; then
echo "ADS_TOKEN is not set, ADS tests will be skipped"
else
echo "ADS_TOKEN is set"
fi
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Test with pytest
run: |
pytest