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

Update CI/CD workflow #29

Merged
merged 3 commits into from
Mar 8, 2024
Merged
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
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
Loading