Skip to content

Commit

Permalink
spruce up CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemhenry committed Feb 21, 2024
1 parent 0f02fff commit 7ce9ce0
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
schedule:
# nightly tests, 2 am
- cron: "0 2 * * *"
Expand All @@ -23,7 +21,7 @@ concurrency:

defaults:
run:
shell: bash -l {0}
shell: bash -leo pipefail {0}

jobs:
test:
Expand All @@ -36,18 +34,21 @@ jobs:

steps:
- uses: actions/[email protected]

- name: Get current date
id: date
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"

- uses: conda-incubator/setup-[email protected]
- uses: mamba-org/setup-micromamba@v1
with:
python-version: "${{ matrix.python-version }}"
environment-file: .binder/environment.yml
activate-environment: test
auto-activate-base: false
mamba-version: "*"
miniforge-version: latest
miniforge-variant: Mambaforge
use-mamba: true
channel-priority: true
cache-environment: true
cache-downloads: true
cache-environment-key: environment-${{ steps.date.outputs.date }}
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
create-args: >-
python=${{ matrix.python-version }}
init-shell: bash

- name: Additional info about the build
run: |
Expand Down

0 comments on commit 7ce9ce0

Please sign in to comment.