Skip to content

Commit

Permalink
Merge pull request #29 from ami-iit/diegoferigo-patch-1
Browse files Browse the repository at this point in the history
Update CI/CD workflow
  • Loading branch information
diegoferigo authored Mar 8, 2024
2 parents 2f6e37a + 4eb1f3d commit f63965c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Python CI/CD

on:
workflow_dispatch:
push:
pull_request:
release:
Expand All @@ -9,13 +10,13 @@ on:
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 * * *'
- cron: "0 2 * * *"

jobs:

package:
name: Package the project
runs-on: ubuntu-22.04
runs-on: ubuntu-latest

steps:

Expand All @@ -26,7 +27,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.*"

- name: Install Python tools
run: pip install build twine
Expand Down Expand Up @@ -65,7 +66,7 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu-22.04
- ubuntu-latest
- macos-latest
- windows-latest
type:
Expand Down Expand Up @@ -104,8 +105,6 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends gazebo
# Remove following line as soon as iDynTree is available on Python 3.11:
pip install --pre idyntree
- name: Install conda dependencies
if: matrix.type == 'conda'
Expand All @@ -115,6 +114,7 @@ jobs:
mashumaro \
numpy \
packaging \
resolve-robotics-uri-py \
scipy \
xmltodict \
black \
Expand Down Expand Up @@ -156,8 +156,7 @@ jobs:
publish:
name: Publish to PyPI
needs: test
if: github.event_name != 'schedule'
runs-on: ubuntu-22.04
runs-on: ubuntu-latest

steps:

Expand Down

0 comments on commit f63965c

Please sign in to comment.