-
Notifications
You must be signed in to change notification settings - Fork 20
39 lines (32 loc) · 1.02 KB
/
python-app.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python application
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Set up Python
run: uv python install 3.9
- name: Install the project
run: uv pip sync requirements.txt
- name: Run tests
# For example, using `pytest`
run: uv run pytest tests
env:
SECRET_KEY: 21290asdkja
DEBUG: True
DATABASE_URL: sqlite:///test.db
ENV: local
ALLOWED_HOSTS: localhost
SENDGRID_API_KEY: 123
FROM_EMAIL: pybites@example.com
ADMIN_USERS: pybites
CELERY_BROKER_URL: amqp://guest:guest@localhost