chore(deps): update konflux references #1249
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
name: 🕵️ Test suite | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout to master | |
uses: actions/checkout@v4 | |
- uses: chartboost/ruff-action@v1 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
architecture: 'x64' | |
- uses: pre-commit/action@v3.0.1 | |
- name: Install build dependencies | |
run: | | |
python -m pip install -U pip | |
pip install -U wheel setuptools build | |
- name: Build | |
run: python -m build -o dist/ | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: dist | |
build_check: | |
runs-on: ubuntu-22.04 | |
needs: [build] | |
steps: | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
architecture: 'x64' | |
- uses: actions/download-artifact@v4 | |
with: | |
name: dist | |
path: dist | |
- run: pipx run twine check --strict dist/* | |
test: | |
runs-on: ${{ matrix.os }} | |
needs: [build] | |
strategy: | |
matrix: | |
# todo: extract from source | |
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ] | |
os: [ubuntu-22.04, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/cache@v4 | |
with: | |
path: ${{ env.pythonLocation }} | |
key: ${{ env.pythonLocation }} | |
- name: Install CLI tools from OpenShift Mirror | |
uses: redhat-actions/openshift-tools-installer@v1 | |
with: | |
oc: "4.16" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -U setuptools wheel setuptools_scm | |
- uses: actions/download-artifact@v4 | |
with: | |
name: dist | |
path: dist | |
- name: install wheel with test extras | |
run: | | |
WHEEL_FILE=$(ls dist/*.whl) | |
pip install "$WHEEL_FILE[test]" | |
- name: test bonfire version and create default config file | |
run: | | |
pip list | grep crc-bonfire | |
which bonfire | |
bonfire --help | |
bonfire config write-default | |
- name: pytest | |
run: pytest -sv |