-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add conda-forge CI for running tests
- Loading branch information
1 parent
1ce4b65
commit 3e0f48b
Showing
2 changed files
with
76 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Test ADAM with conda-forge dependencies | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
# Execute a "nightly" build at 2 AM UTC | ||
- cron: '0 2 * * *' | ||
|
||
jobs: | ||
build-with-conda-forge-dependencies: | ||
name: '[conda-forge:${{ matrix.os }}]' | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
build_type: [Release] | ||
os: [ubuntu-latest,macos-latest,windows-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Get current week | ||
shell: bash -l {0} | ||
id: week | ||
run: echo "week=$(date +%Y-%U)" >> "${GITHUB_OUTPUT}" | ||
- uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: ci_env.yml | ||
cache-environment-key: environment-${{ steps.week.outputs.week }}-${{ matrix.os }} | ||
|
||
- name: Print packages and environment | ||
shell: bash -l {0} | ||
run: | | ||
env | ||
uname -r | ||
micromamba list | ||
- name: Install ADAM | ||
shell: bash -l {0} | ||
run: | | ||
pip install --no-deps . | ||
- name: Test with pytest [macOS and Linux] | ||
shell: bash -l {0} | ||
if: contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu') | ||
run: | | ||
# Add additional dependencies not available on Windows | ||
micromamba install jax pytorch | ||
pytest | ||
- name: Test with pytest [Windows] | ||
shell: bash -l {0} | ||
if: contains(matrix.os, 'windows') | ||
run: | | ||
# Skip additional dependencies not available on Windows | ||
pytest --count=100 -v --ignore-glob=*Jax* --ignore-glob=*pytorch* |
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,18 @@ | ||
name: adamdev | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python >=3.7 | ||
- numpy | ||
- scipy | ||
- casadi | ||
- prettytable | ||
- urdfdom-py | ||
- pip | ||
- wheel | ||
- setuptools | ||
- setuptools_scm | ||
- pytest | ||
- pytest-repeat | ||
- gym-ignition-models | ||
- idyntree |