v0.23.1 #41
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2020-2024 The MathWorks, Inc. | |
# Workflow to test MATLAB-Proxy while releasing to PyPi | |
name: Release to PyPI | |
on: | |
release: | |
types: [created] | |
jobs: | |
call-run-unit-tests: | |
# Call workflow for running node and python tests | |
uses: ./.github/workflows/run-unit-tests.yml | |
generate-code-coverage: | |
# Generates Code coverage and uploads it | |
needs: [call-run-unit-tests] | |
if: success() | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Generate Code Coverage XML | |
uses: ./.github/actions/generate-code-coverage | |
with: | |
codecov-token: ${{ secrets.CODECOV_TOKEN }} | |
build_and_publish_pypi: | |
needs: call-run-unit-tests | |
if: success() | |
# windows container is not required here | |
runs-on: ubuntu-latest | |
# Specifying a GitHub environment is optional, but strongly encouraged | |
environment: release | |
permissions: | |
# IMPORTANT: this permission is mandatory for trusted publishing | |
id-token: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{github.sha}} | |
- name: Build and Publish in PyPi | |
uses: ./.github/actions/build_and_publish_pypi |