deb-mock/.forgejo/workflows/release.yml
robojerk 94a2914dff
Some checks failed
Build Deb-Mock Package / build (push) Failing after 2s
Test Deb-Mock Build / test (push) Failing after 2s
fix forgejo workflows to use proper syntax without external actions
2025-08-03 22:33:08 +00:00

59 lines
No EOL
1.4 KiB
YAML

name: Release Deb-Mock
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
run: |
git clone ${{ github.server_url }}/${{ github.repository }} .
git checkout ${{ github.sha }}
- name: Set up Python
run: |
sudo apt update
sudo apt install -y python3.12 python3.12-venv python3-pip
- name: Install system dependencies
run: |
sudo apt install -y sbuild schroot debootstrap
- name: Set up virtual environment
run: |
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip setuptools wheel twine
- name: Install dependencies
run: |
source venv/bin/activate
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Run tests
run: |
source venv/bin/activate
python -m pytest tests/ -v
- name: Build package
run: |
source venv/bin/activate
python setup.py sdist bdist_wheel
- name: Check package
run: |
source venv/bin/activate
twine check dist/*
- name: List release artifacts
run: |
echo "Release artifacts created:"
ls -la dist/
echo "Tag: ${{ github.ref_name }}"
echo "Repository: ${{ github.repository }}"