Skip to content

Include other examples in toml #35

Include other examples in toml

Include other examples in toml #35

Workflow file for this run

name: CI Pipeline
# Triggers of the Action: Push or Pull Request
on:
pull_request:
branches: [ develop ]
types: [opened, review_requested, ready_for_review, synchronize]
# Allows you to run this workflow manually from the Actions tab (when this yml is in the main branch)
workflow_dispatch:
jobs:
build:
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
strategy:
fail-fast: false # allow other OS to keep running when one fails
matrix: # Linux ; MacOS ; Windows
sys:
- { os: ubuntu-latest, shell: bash}
#- { os: windows-latest, shell: 'msys2 {0}' }
#- { os: macos-latest, shell: bash}
# Set the default shell
defaults:
run:
shell: ${{ matrix.sys.shell }}
runs-on: ${{ matrix.sys.os }}
####################################################################
steps:
# Checkout the source and the submodules
- name: Checkout repository and submodules
uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.API_TOKEN_GITHUB }}
persist-credentials: true
# Install dependencies
- name: Install dependencies
run: pip3 install -r requirements.txt
# Set version
- name: Set Version
run: |
VERSION=$(python3 setup.py --version)

Check failure on line 48 in .github/workflows/CI.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/CI.yml

Invalid workflow file

You have an error in your yaml syntax on line 48
echo "__version__ = \"$VERSION\"" > maf_three/__init__.py
# Build proto files
- name: Build proto files
run: python3 ./scripts/build_proto.py
# Build
- name: Build
run: python3 -m build
# Install our package (required for the tests to find the namespace : MF.V3)
- name: Install
run: pip3 install ./dist/maf_three-0.0.0-py3-none-any.whl
# Run the tests
- name: Test
run: python3 -m pytest
# Build the documentation
- name: Documentation
run: python3 ./scripts/build-doc.py