deb-mock/.forgejo/workflows/release.yml
robojerk 0ba814ddad
Some checks failed
Build Deb-Mock Package / build (push) Failing after 57s
Test Deb-Mock Build / test (push) Failing after 53s
fix git clone URLs to use external Forgejo URL instead of internal Docker network
2025-08-03 22:36:54 +00:00

60 lines
No EOL
1.5 KiB
YAML

name: Release Deb-Mock
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
run: |
git clone https://git.raines.xyz/robojerk/deb-mock.git /tmp/deb-mock
cp -r /tmp/deb-mock/* .
cp -r /tmp/deb-mock/.* . 2>/dev/null || true
- 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 }}"