-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 792 Bytes
/
ci.yml
File metadata and controls
29 lines (27 loc) · 792 Bytes
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
name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install system deps
run: sudo apt-get update && sudo apt-get install -y default-libmysqlclient-dev build-essential pkg-config
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint
run: flake8 backend
- name: Test
env:
DATABASE_URL: mysql+mysqlconnector://root:1234@localhost/resqtrack
ALLOWED_ORIGINS: http://localhost:5500
run: pytest -q