mirror of
https://github.com/TheLovinator1/discord-reminder-bot.git
synced 2025-07-14 01:23:28 +02:00
Activate .gitea workflow
This commit is contained in:
37
.gitea/workflows/uv.yml
Normal file
37
.gitea/workflows/uv.yml
Normal file
@ -0,0 +1,37 @@
|
||||
name: uv
|
||||
|
||||
on:
|
||||
# push:
|
||||
# pull_request:
|
||||
workflow_dispatch:
|
||||
# schedule:
|
||||
# - cron: "0 6 * * *"
|
||||
|
||||
env:
|
||||
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
|
||||
TIMEZONE: Europe/Stockholm
|
||||
LOG_LEVEL: Info
|
||||
SQLITE_LOCATION: /data/jobs.sqlite
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
jobs:
|
||||
test-on-uv:
|
||||
name: Install with uv and run tests on Python 3.13
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: |
|
||||
if [ -z "${{ env.BOT_TOKEN }}" ]; then
|
||||
echo "BOT_TOKEN not set"
|
||||
exit 1
|
||||
fi
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Install uv and set the python version to 3.13
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
python-version: 3.13
|
||||
version: "latest"
|
||||
- name: Install dependencies
|
||||
run: uv sync --all-extras --dev
|
||||
- name: Run tests
|
||||
run: uv run pytest
|
Reference in New Issue
Block a user