Switch from Woodpecker CI to Forgejo Actions
All checks were successful
Run tests / test-precommit (push) Successful in 1m6s

This commit is contained in:
Benjamin Renard 2024-03-15 09:10:00 +01:00
parent 9b16454aac
commit 51ddd1ab35
3 changed files with 56 additions and 12 deletions

View file

@ -0,0 +1,41 @@
---
name: Build and publish Debian package
on: ["create"]
jobs:
publish-forgejo:
runs-on: docker
container:
image: docker.io/brenard/debian-python-deb:latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create the release
run: |
mkdir release
mv check_pip_upgrade release/
md5sum release/* > md5sum.txt
sha512sum release/* > sha512sum.txt
mv md5sum.txt sha512sum.txt release/
- name: Generate release notes
id: generate-release-notes
shell: bash
run: |
gitdch -R release_notes.md -n check-pip-upgrade -o /dev/null
{
echo 'release_note<<EOF'
cat release_notes.md
echo 'EOF'
} >> "$GITHUB_OUTPUT"
- name: Publish release on Forgejo
uses: actions/forgejo-release@v1
with:
direction: upload
url: https://gitea.zionetrix.net
token: ${{ secrets.forgejo_token }}
release-dir: release
release-notes: ${{ steps.generate-release-notes.outputs.release_note }}

View file

@ -0,0 +1,15 @@
---
name: Run tests
on: [push]
jobs:
test-precommit:
runs-on: docker
container:
image: docker.io/brenard/python-pre-commit:latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run pre-commit
run: pre-commit run --all-files

View file

@ -1,12 +0,0 @@
pipeline:
test-pylint:
group: test
image: pipelinecomponents/pylint
commands:
- pylint check_pip_upgrade
test-flake8:
group: test
image: pipelinecomponents/flake8
commands:
- flake8 check_pip_upgrade