Move CI commands to the common bash script #131
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 (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 |