Skip to content

Commit

Permalink
CI: Add examples building for each PR / push
Browse files Browse the repository at this point in the history
OTK repo contains examples which can be used by users.
This PR adds CI routine to be sure they are build each time
without any errors.
  • Loading branch information
elkoniu committed May 28, 2024
1 parent 54287bb commit c14f4b4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build examples

on: [pull_request, push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
run: |
python3 -m venv venv
. venv/bin/activate
pip install -e ".[dev]"
otk compile example/fedora/*yaml

0 comments on commit c14f4b4

Please sign in to comment.