Skip to content

Move CI commands to the common bash script #131

Move CI commands to the common bash script

Move CI commands to the common bash script #131

Workflow file for this run

# Copyright (c) 2023-2024 Antmicro <www.antmicro.com>
# SPDX-License-Identifier: Apache-2.0
name: Pipeline
on: [pull_request, push, workflow_dispatch]
defaults:
run:
shell: bash
env:
DEBIAN_FRONTEND: noninteractive
jobs:
lint:
runs-on: ubuntu-latest
container:
image: debian:bookworm
name: "Run lint checks"
steps:
- name: Install git package
run: |
apt-get update -qq
apt-get install -y --no-install-recommends git
- uses: actions/checkout@v4
with:
submodules: true
- name: Run lint checks
run: |
./.github/scripts/test.sh lint
tests:
runs-on: ubuntu-latest
container:
image: debian:bookworm
name: "Run tests"
steps:
- name: Install git package
run: |
apt-get update -qq
apt-get install -y --no-install-recommends git
- uses: actions/checkout@v4
with:
submodules: true
- name: Run Python tests
run: |
./.github/scripts/test.sh tests
examples:
runs-on: ubuntu-latest
container:
image: debian:bookworm
name: 'Generate examples'
steps:
- name: Install git package
run: |
apt-get update -qq
apt-get install -y --no-install-recommends git
- uses: actions/checkout@v4
- name: Generate Topwrap examples
run: |
./.github/scripts/test.sh examples