Skip to content

Remove SRPM upload from validate workflow #19

Remove SRPM upload from validate workflow

Remove SRPM upload from validate workflow #19

Workflow file for this run

name: Validate RPM Spec
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
validate:
runs-on: ubuntu-latest
container:
image: fedora:rawhide
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
dnf install -y rpm-build rpmdevtools rpmlint spectool
dnf builddep -y python-debugpy.spec
- name: Validate spec file
run: |
rpmlint python-debugpy.spec || true
- name: Download sources
run: |
spectool -g python-debugpy.spec
- name: Build SRPM
run: |
rpmbuild -bs python-debugpy.spec \
--define "_sourcedir $PWD" \
--define "_srcrpmdir $PWD"