Skip to content

Commit

Permalink
CI: separate out online tests to their own workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bsipocz committed Jun 15, 2024
1 parent b8df567 commit 620351a
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 19 deletions.
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 }}

0 comments on commit 620351a

Please sign in to comment.