-
Notifications
You must be signed in to change notification settings - Fork 2
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
Test on MacOS and remove progress bar from example #159
Open
Yoshanuikabundi
wants to merge
8
commits into
main
Choose a base branch
from
notebook_timeout
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
38d4665
Test on MacOS and remove progress bar from example
Yoshanuikabundi 69abd32
Undo formatting changes
Yoshanuikabundi 45e4de1
Disable progress bar in electric field example
Yoshanuikabundi 17a88d2
Use macos-latest instead of macos-12
Yoshanuikabundi 691ebff
conda -> micromamba in examples CI
Yoshanuikabundi 2d183de
Update setup-micromamba to v2
Yoshanuikabundi 75adaca
Remove defaults channel from examples environment
Yoshanuikabundi 8870d78
try telling pytorch not to use mps
lilyminium 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,65 +28,63 @@ jobs: | |
name: Examples CI (${{ matrix.os }}, py-${{ matrix.python-version }}, rdkit=${{ matrix.include-rdkit }}, openeye=${{ matrix.include-openeye }}, dgl=${{ matrix.include-dgl }}), pydantic=${{ matrix.pydantic-version }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.11", "3.12"] | ||
pydantic-version: ["2"] | ||
include-rdkit: [true] | ||
include-openeye: [false] | ||
include-dgl: [true] | ||
|
||
fail-fast: false | ||
matrix: | ||
os: [macOS-12, ubuntu-latest] | ||
python-version: ["3.11", "3.12"] | ||
pydantic-version: ["2"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry to be a bit of a nitpicker, but this could also go away (and below) |
||
include-rdkit: [true] | ||
include-openeye: [false] | ||
include-dgl: [true] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build information | ||
run: | | ||
uname -a | ||
df -h | ||
ulimit -a | ||
|
||
- name: Build information | ||
run: | | ||
uname -a | ||
df -h | ||
ulimit -a | ||
- name: Install environment | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: devtools/conda-envs/examples_env.yaml | ||
create-args: >- | ||
python=${{ matrix.python-version }} | ||
pydantic=${{ matrix.pydantic-version }} | ||
|
||
- name: Install environment | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: devtools/conda-envs/examples_env.yaml | ||
create-args: >- | ||
python=${{ matrix.python-version }} | ||
pydantic=${{ matrix.pydantic-version }} | ||
- name: Install package | ||
run: | | ||
python -m pip install . --no-deps | ||
|
||
- name: Install package | ||
run: | | ||
python -m pip install . --no-deps | ||
- uses: ./.github/actions/include-openeye | ||
if: matrix.include-openeye == true | ||
with: | ||
openeye-license-text: ${{ secrets.OE_LICENSE }} | ||
openeye-license-file: ${{ env.OE_LICENSE }} | ||
|
||
- uses: ./.github/actions/include-openeye | ||
if: matrix.include-openeye == true | ||
with: | ||
openeye-license-text: ${{ secrets.OE_LICENSE }} | ||
openeye-license-file: ${{ env.OE_LICENSE }} | ||
- name: Uninstall OpenEye | ||
if: matrix.include-openeye == false | ||
run: conda remove --force openeye-toolkits --yes || echo "openeye not installed" | ||
|
||
|
||
- name: Uninstall OpenEye | ||
if: matrix.include-openeye == false | ||
run: conda remove --force openeye-toolkits --yes || echo "openeye not installed" | ||
- name: Uninstall RDKit | ||
if: matrix.include-rdkit == false | ||
run: conda remove --force rdkit --yes || echo "rdkit not installed" | ||
|
||
- name: Uninstall RDKit | ||
if: matrix.include-rdkit == false | ||
run: conda remove --force rdkit --yes || echo "rdkit not installed" | ||
|
||
- name: Python information | ||
run: | | ||
which python | ||
conda info | ||
conda list | ||
- name: Python information | ||
run: | | ||
which python | ||
conda info | ||
conda list | ||
|
||
- name: Check toolkit installations | ||
shell: bash -l -c "python -u {0}" | ||
run: | | ||
from openff.toolkit.utils.toolkits import OPENEYE_AVAILABLE, RDKIT_AVAILABLE | ||
assert str(OPENEYE_AVAILABLE).lower() == '${{ matrix.include-openeye }}' | ||
assert str(RDKIT_AVAILABLE).lower() == '${{ matrix.include-rdkit }}' | ||
- name: Check toolkit installations | ||
shell: bash -l -c "python -u {0}" | ||
run: | | ||
from openff.toolkit.utils.toolkits import OPENEYE_AVAILABLE, RDKIT_AVAILABLE | ||
assert str(OPENEYE_AVAILABLE).lower() == '${{ matrix.include-openeye }}' | ||
assert str(RDKIT_AVAILABLE).lower() == '${{ matrix.include-rdkit }}' | ||
|
||
- name: Run example notebooks | ||
run: | | ||
python -m pytest -r fE -v -x --tb=short -nauto --nbval-lax --nbval-cell-timeout=50000 --dist loadscope examples | ||
- name: Run example notebooks | ||
run: | | ||
python -m pytest -r fE -v -x --tb=short -nauto --nbval-lax --dist loadscope examples |
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
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.
macos-12
is being removed next month 😞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.
Is
macos-latest
appropriate?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.
Yeah I think so, it's no longer intel but AmberTools doesn't work on macOS-13. Thanks so much for looking at this!