Skip to content

Commit

Permalink
add pyright, pytest to ci-cd
Browse files Browse the repository at this point in the history
  • Loading branch information
azliu0 committed Apr 14, 2024
1 parent da4102e commit 3eca242
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,42 @@ on:
- main

jobs:
tests:
name: Run tests

runs-on: ubuntu-20.04

services:
postgres:
image: postgres:16
env:
POSTGRES_PASSWORD: password
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
cache: "pip"

- name: Install dependencies
run: pip install -r requirements.txt

- name: Run Pyright
uses: jakebailey/pyright-action@v1

- name: Run pytests
run: pytest -v -s

pre-commit:
name: run pre-commit

Expand Down

0 comments on commit 3eca242

Please sign in to comment.