-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 917 Bytes
/
ci.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
name: CI
on:
push:
paths:
- '**.py'
jobs:
ci:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
ports:
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: stocklake
steps:
- uses: actions/checkout@v4
# NOTE: Read python version from .python-version in the workging directory.
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: pip
- name: Create venv and install python packages
run: |
python -m pip install --upgrade pip && pip install -r dev-requirements.txt && pip install -r requirements.txt
- name: Run Ruff Linter
run: |
ruff check .
- name: Run mypy Type Checking
run: |
mypy .
- name: Run pytest
run: |
pytest