test(CICD): create workflow for wallpaper_changer

This commit is contained in:
Lucas Vivo committed 2026-11-16 19:48:08 +01:00
1 parent b90d80ed79
commit a8080e3e30
1 file changed
+23 -13
+23 -13
View File
@@ -1,19 +1,29 @@
name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
name: Python tests
on:
push:
pull_request:
jobs:
Explore-Gitea-Actions:
test:
runs-on: ubuntu-latest
container:
image: python:3.12-bookworm
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
- name: Check out repository
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
- name: Create virtual environment and install dependencies
working-directory: wallpaper_changer
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
python -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install .
- name: Run tests
working-directory: wallpaper_changer
run: |
. .venv/bin/activate
python tests/run_tests.py