Skip to content

Commit

Permalink
Consolidate initial and comprehensive tests (#261)
Browse files Browse the repository at this point in the history
* Stop separting initial-tests from comprehensive tests

* Update tests
  • Loading branch information
namurphy authored Jun 27, 2024
1 parent 2b4b41c commit e01871d
Showing 1 changed file with 24 additions and 53 deletions.
77 changes: 24 additions & 53 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,50 @@ on:
branches:
- main
- stable
- v*.*.x
- v*.*.*
tags:
- v*
pull_request:
workflow_dispatch:

jobs:

initial-tests:
tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30

strategy:
fail-fast: false

matrix:
include:

- name: Python 3.11 (Windows)
- name: Tests, Python 3.12, Windows
os: windows-latest
noxenv: tests-3.12
python: '3.12'
noxposargs: --durations=10

- name: Tests, Python 3.11, Windows
os: windows-latest
noxenv: tests-3.11
python: '3.11'
noxposargs: --durations=10

- name: Python 3.12 (Windows)
- name: Tests, Python 3.10, macOS
os: macos-latest
noxenv: tests-3.10
python: '3.10'

- name: Tests, Python 3.9, Windows
os: windows-latest
noxenv: tests-3.12
python: '3.12'
noxposargs: --durations=10
python: 3.9
noxenv: tests-3.9

- name: Import package
- name: Import XRTpy, Python 3.9, Windows
os: windows-latest
python: '3.11'
python: 3.9
noxenv: import_package

steps:
Expand Down Expand Up @@ -95,47 +109,4 @@ jobs:
pandoc --version
- name: Build documentation
run: nox -e build_docs_nitpicky -- -q

comprehensive-tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
needs: initial-tests
strategy:
fail-fast: false

matrix:
include:

- name: Python 3.10 (Mac OS)
os: macos-latest
noxenv: tests-3.10
python: '3.10'

- name: Python 3.9 (Windows)
os: windows-latest
python: 3.9
noxenv: tests-3.9

- name: Import package
os: windows-latest
python: 3.9
noxenv: import_package

steps:

- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Install nox
run: python -m pip install --progress-bar off --upgrade nox

- name: ${{ matrix.name }}
run: nox -s ${{ matrix.noxenv }} -- ${{ matrix.noxposargs }}
run: nox -s build_docs_nitpicky -- -q

0 comments on commit e01871d

Please sign in to comment.