Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] conda release cron job #320

Closed
wants to merge 9 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/conda_cron.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: "conda_cron"
on:
pull_request:
branches:
- main
push:
branches:
- main
schedule:
# At 07:00 UTC every day
- cron: "0 7 * * *"

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

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

jobs:
condacheck:
runs-on: ${{ matrix.OS }}-latest
name: "daily conda check"
strategy:
fail-fast: false
matrix:
os: ['ubuntu', 'macos']
python-version:
- "3.9"
- "3.10"

steps:
- name: Setup Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: False
environment-name: openfe
channels: conda-forge
extra-specs: |
python==${{ matrix.python-version }}

- name: "Install openfe + optional deps"
run: micromamba install openfe pytest -c conda-forge

- name: "Run tests"
env:
OFE_SLOW_TESTS: "true"
run: pytest --pyargs openfe openfecli

- name: "WIP"
run: |
micromamba list