Skip to content

Commit

Permalink
rework os level tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atmorling committed Dec 2, 2024
1 parent 74d014a commit 1ae5718
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 11 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/io_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Test IO

on:
schedule:
# Per https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule
# Make this a weird time
- cron: "23 5 * * 1"
push:
branches: [ "master" ]
pull_request:
Expand All @@ -21,4 +17,5 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
io: "io"
os: "ubuntu-latest"
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
io: "not io"
secrets: inherit
os: "ubuntu-latest"
26 changes: 26 additions & 0 deletions .github/workflows/test_all.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test Everything

on:
schedule:
# Per https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule
# Make this a weird time
- cron: "23 5 * * *"
workflow_dispatch: {}


jobs:
ubuntu:
uses: ./.github/workflows/tests.yml
with:
io: "io or not io"
os: "ubuntu-latest"
mac:
uses: ./.github/workflows/tests.yml
with:
io: "io or not io"
os: "macos-latest"
windows:
uses: ./.github/workflows/tests.yml
with:
io: "io or not io"
os: "windows-latest"
13 changes: 7 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,28 @@ on:
io:
type: string
required: true
inputs:
os:
type: string
required: true

jobs:
Test:
name: ${{ matrix.os }}, ${{ matrix.env }}
runs-on: ${{ matrix.os }}
name: ${{ inputs.os }}, ${{ inputs.io }}
runs-on: ${{ inputs.os }}
defaults:
run:
shell: bash -leo pipefail {0}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
env: [environment.yml]

steps:
- uses: actions/checkout@v4

- name: Setup Micromamba
uses: mamba-org/[email protected]
with:
environment-file: ${{ matrix.env }}
environment-file: ${{ environment.yml }}
cache-environment: true
init-shell: bash powershell

Expand Down

0 comments on commit 1ae5718

Please sign in to comment.