Skip to content

Release 7.2.1

Release 7.2.1 #3113

Workflow file for this run

on:
workflow_dispatch:
push:
branches:
- develop
- 7.1
- 7.2
pull_request:
branches:
- develop
- 7.1
- 7.2
name: Run tests
jobs:
precommit:
name: Pre-commit checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install deps
run: pip install click
# we only really need to run the precommit checks for one release,
# so we just do it for pip
- name: Run the pre-commit checks
run: devel/ci/bodhi-ci pre-commit -r pip
diff_cover:
name: Diff-cover check
runs-on: ubuntu-latest
needs: unit_tests
# Run diff-cover even if the unit tests failed on rawhide:
if: always()
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download artifacts
uses: actions/download-artifact@v3
- name: Edit the path in the coverage files
run: sed -i -e "s,<source>/bodhi,<source>$PWD," Coverage*/coverage.xml
shell: bash
- name: Install deps
run: pip install diff-cover
- name: Run the diff-cover check
shell: bash
run: diff-cover --compare-branch=origin/develop --fail-under=100 Coverage*/coverage.xml
integration_tests:
name: Integration Tests
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Install deps
run: pip3 install click -r devel/ci/integration/requirements.txt
- name: Run the integration tests
run: python3 devel/ci/bodhi-ci integration -r ${{ matrix.release }}
strategy:
fail-fast: false
matrix:
# integration tests are broken on pip atm, so not included in this list.
release: [f37,f38,rawhide]
unit_tests:
name: Unit Tests
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Install deps
run: pip install click
- name: Run the unit tests
run: devel/ci/bodhi-ci unit -r ${{ matrix.release }} -m ${{matrix.module}}
- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: Coverage for ${{ matrix.module }} on ${{ matrix.release }}
path: test_results/${{ matrix.release }}-unit/${{ matrix.module }}/coverage.xml
strategy:
fail-fast: false
matrix:
release: [f37,f38,pip,rawhide]
module: [bodhi-client, bodhi-messages, bodhi-server]
docs:
name: Build Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install deps
run: pip install click -r docs/requirements.txt
- name: Build the docs
run: devel/ci/bodhi-ci docs -r ${{ matrix.release }}
strategy:
fail-fast: false
matrix:
release: [f37,f38,pip,rawhide]
rpms:
name: Build the RPMS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install deps
run: pip install click
- name: Build the rpms
run: devel/ci/bodhi-ci rpm -r ${{ matrix.release }}
- name: Upload built rpms
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.release }} RPMs
path: |
test_results/${{ matrix.release }}-rpm/*.noarch.rpm
test_results/${{ matrix.release }}-rpm/*.src.rpm
strategy:
fail-fast: false
matrix:
release: [f37,f38,rawhide]