Skip to content

Commit

Permalink
Merge pull request #93 from traversaro/pimpmytest
Browse files Browse the repository at this point in the history
Add workflow_dispatch and schedule events to ci_cd workflow and constraint jax<0.4.25 to be
  • Loading branch information
flferretti committed Feb 28, 2024
2 parents 7239714 + c3d9e40 commit 389c556
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 21 deletions.
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

0 comments on commit 389c556

Please sign in to comment.