Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: separate out online tests to their own workflow #3042

Merged
merged 1 commit into from
Jun 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 5 additions & 19 deletions .github/workflows/ci_crontests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
tags:
- '*'
schedule:
# run every Friday at 23:00 UTC
- cron: '0 23 * * 5'
# run every Friday at 22:00 UTC
- cron: '0 22 * * 5'
workflow_dispatch:

permissions:
Expand All @@ -22,24 +22,10 @@ jobs:
fail-fast: false
matrix:
include:
- name: py3.11 all dev deps online
- name: py3.12 pre-release all deps
os: ubuntu-latest
python: '3.11'
toxenv: py311-test-alldeps-devdeps-online
toxargs: -v
toxposargs: -v --durations=50

- name: Windows py3.9 all deps online
os: windows-latest
python: '3.9'
toxenv: py39-test-alldeps-online
toxargs: -v
toxposargs: -v --durations=50

- name: py3.11 pre-release all deps
os: ubuntu-latest
python: '3.11'
toxenv: py311-test-alldeps-predeps
python: '3.12'
toxenv: py312-test-alldeps-predeps
toxargs: -v
toxposargs: -v

Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/ci_online_crontests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI-online-crontests

on:
push:
# Run this job on release tags, but not on pushes to the main branch
tags:
- '*'
schedule:
# run every Friday at 23:00 UTC
- cron: '0 23 * * 5'
workflow_dispatch:

permissions:
contents: read

jobs:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
if: github.repository == 'astropy/astroquery'
strategy:
fail-fast: false
matrix:
include:
- name: py3.12 all dev deps online
os: ubuntu-latest
python: '3.12'
toxenv: py312-test-alldeps-devdeps-online
toxargs: -v
toxposargs: -v --durations=50

- name: Windows py3.9 all deps online
os: windows-latest
python: '3.9'
toxenv: py39-test-alldeps-online
toxargs: -v
toxposargs: -v --durations=50

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 Python dependencies
run: python -m pip install --upgrade tox
- name: Run tests
run: tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }}
Loading