diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 4468ead..42a628f 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -1,6 +1,7 @@ name: Python CI/CD on: + workflow_dispatch: push: pull_request: release: @@ -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: @@ -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 @@ -65,7 +66,7 @@ jobs: fail-fast: false matrix: os: - - ubuntu-22.04 + - ubuntu-latest - macos-latest - windows-latest type: @@ -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' @@ -115,6 +114,7 @@ jobs: mashumaro \ numpy \ packaging \ + resolve-robotics-uri-py \ scipy \ xmltodict \ black \ @@ -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: