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

Add workflow_dispatch and schedule events to ci_cd workflow and constraint jax<0.4.25 to be #93

Merged
merged 4 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
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
31 changes: 12 additions & 19 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
name: Python CI/CD

on:
workflow_dispatch:
push:
pull_request:
release:
types:
- published
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:

Expand Down Expand Up @@ -83,38 +89,25 @@ jobs:
shell: bash
run: pip install "$(find dist/ -type f -name '*.whl')"

- name: Document installed pip packages
shell: bash
run: pip list --verbose

- name: Import the package
run: python -c "import jaxsim"

- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
src: &src
- 'src/**'
tests: &tests
- 'tests/**'
src_and_tests:
- *src
- *tests

- name: Install Gazebo Classic
if: |
contains(matrix.os, 'ubuntu') &&
(github.event_name != 'pull_request' ||
steps.changes.outputs.src_and_tests == 'true')
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install gazebo

- name: Run the Python tests
if: |
contains(matrix.os, 'ubuntu') &&
(github.event_name != 'pull_request' ||
steps.changes.outputs.src_and_tests == 'true')
if: contains(matrix.os, 'ubuntu')
run: pytest
env:
JAX_PLATFORM_NAME: cpu
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ package_dir =
python_requires = >=3.11
install_requires =
coloredlogs
jax >= 0.4.13
jaxlib
jax >= 0.4.13,< 0.4.25
jaxlib >= 0.4.13,< 0.4.25
jaxlie >= 1.3.0
jax_dataclasses >= 1.4.0
pptree
Expand Down
Loading