From 620351a26e43ebb961b4c937db9c46dd00e2cf2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Fri, 14 Jun 2024 18:50:04 -0700 Subject: [PATCH] CI: separate out online tests to their own workflow --- .github/workflows/ci_crontests.yml | 24 +++-------- .github/workflows/ci_online_crontests.yml | 51 +++++++++++++++++++++++ 2 files changed, 56 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/ci_online_crontests.yml diff --git a/.github/workflows/ci_crontests.yml b/.github/workflows/ci_crontests.yml index 8cd9c50e20..f6905def91 100644 --- a/.github/workflows/ci_crontests.yml +++ b/.github/workflows/ci_crontests.yml @@ -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: @@ -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 diff --git a/.github/workflows/ci_online_crontests.yml b/.github/workflows/ci_online_crontests.yml new file mode 100644 index 0000000000..c9527e8211 --- /dev/null +++ b/.github/workflows/ci_online_crontests.yml @@ -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 }}