Skip to content

Add methods to create, delete and update objects #40

Add methods to create, delete and update objects

Add methods to create, delete and update objects #40

#
# Copyright (c) 2025 Red Hat Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing permissions and limitations under
# the License.
#
name: Check pull request
on:
pull_request:
branches:
- main
jobs:
pre-commit:
name: Pre-commit
runs-on: ubuntu-latest
steps:
- name: Checkout the source
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip'
- name: Pre-commit
uses: pre-commit/[email protected]
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Checkout the source
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip'
- name: Install Python modules
run: |
pip install -r requirements.txt
- name: Install tools
run: |
export PATH="../.local/bin:${PATH}"
./dev.py setup
- name: Run linter
run: |
export PATH="../.local/bin:${PATH}"
./dev.py lint
format-code:
name: Format source code
runs-on: ubuntu-latest
steps:
- name: Checkout the source
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip'
- name: Install Python modules
run: |
pip install -r requirements.txt
- name: Install tools
run: |
export PATH="../.local/bin:${PATH}"
./dev.py setup
- name: Run linter
run: |
export PATH="../.local/bin:${PATH}"
./dev.py format
check-generated-code:
name: Check generated code
runs-on: ubuntu-latest
steps:
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Checkout the source
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip'
- name: Install Python modules
run: |
pip install -r requirements.txt
- name: Install tools
run: |
export PATH="../.local/bin:${PATH}"
./dev.py setup
- name: Check generated code
run: |
export PATH="../.local/bin:${PATH}"
./dev.py generate
git diff --exit-code