Files
discord-reminder-bot/.github/workflows/uv.yml
2025-07-01 20:10:29 +02:00

38 lines
859 B
YAML

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