Skip to content

fix: Parsing of west.yml when determening NCS version #7

fix: Parsing of west.yml when determening NCS version

fix: Parsing of west.yml when determening NCS version #7

Workflow file for this run

name: Build
on:
workflow_call:
inputs:
checkout_ref:
required: true
type: string
pull_request:
types: [opened, reopened, synchronize]
jobs:
build:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- name: Checkout last PR commit
if: github.event_name == 'pull_request'
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Checkout last tag
if: github.event_name == 'workflow_dispatch'
uses: actions/checkout@v4
with:
ref: ${{ inputs.checkout_ref }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
cache: "pip"
- name: Install dependencies
run: make install
- name: Run tests
run: make test
- name: Build binary wheel and a source tarball
run: make build
- name: Package artefacts
if: github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/*