-
Notifications
You must be signed in to change notification settings - Fork 21
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
Add conda canary CI job #903
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
3026816
conda cron job canary
IAlibay 1a95bd4
Merge branch 'conda-canary' of github.com:OpenFreeEnergy/openfe into …
IAlibay 94fd58b
add conda cron job
IAlibay 0c072fd
Add dispatch trigger
IAlibay e054f2e
12 not 13 for macos
IAlibay 44b25b3
Update conda_cron.yaml
IAlibay 8394ffe
Update conda_cron.yaml
IAlibay 564fa03
Merge branch 'main' into conda-canary
mikemhenry 31e4b14
Merge branch 'main' into conda-canary
IAlibay 8b49691
Merge branch 'main' into conda-canary
mikemhenry 6de2486
make sure we install latest version of openfe
mikemhenry 6f5c442
install latest version found on conda-forge
mikemhenry 83d7843
bash syntax? don't know her
mikemhenry 6a70c4f
openfe latest not openmm
mikemhenry 0c2952a
use some bash PE tricks
mikemhenry e9556da
fix typo in micromamba cmd
mikemhenry 1f88506
update codecov action
mikemhenry 357511c
removed run on each PR
mikemhenry File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: "conda_cron" | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# At 07:00 UTC every day | ||
- cron: "0 7 * * *" | ||
|
||
concurrency: | ||
group: "${{ github.workflow }}-${{ github.ref }}" | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: bash -leo pipefail {0} | ||
|
||
jobs: | ||
condacheck: | ||
runs-on: ${{ matrix.OS }} | ||
name: "daily conda check" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ['ubuntu-latest', 'macos-latest', 'macos-12'] | ||
python-version: | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
exclude: | ||
- os: 'macos-latest' | ||
python-version: '3.9' | ||
|
||
steps: | ||
- name: Setup Micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-name: openfe | ||
create-args: >- | ||
python=${{ matrix.python-version }} | ||
pip | ||
jq | ||
condarc: | | ||
channels: | ||
- jaimergp/label/unsupported-cudatoolkit-shim | ||
- conda-forge | ||
init-shell: bash | ||
|
||
- name: "Install openfe + optional deps" | ||
run: | | ||
# get latest version from conda-forge | ||
LATEST_VERSION=$(micromamba search --json openfe | jq '.result.pkgs[0].version') | ||
echo "LATEST_VERSION: $LATEST_VERSION" | ||
# Removing the quotes from the vesrion number | ||
# https://mywiki.wooledge.org/BashGuide/Parameters#Parameter_Expansion | ||
micromamba install openfe=${LATEST_VERSION//\"} pytest -c conda-forge | ||
python -m pip install pytest-xdist | ||
|
||
- name: "env info" | ||
run: | | ||
micromamba info | ||
micromamba list | ||
pip list | ||
- id: run-tests | ||
name: "Run tests" | ||
run: | | ||
# note: this only runs the fast tests | ||
pytest -n auto --pyargs openfe openfecli | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm relying on a normal failure here rather than raising the issue as we do with gufe. The plan will be to hook up Swenson's cron job checker tool.