-
-
Notifications
You must be signed in to change notification settings - Fork 21
46 lines (37 loc) · 885 Bytes
/
tests.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
40
41
42
43
44
45
46
---
name: Run Tests
on:
push:
pull_request:
branches:
- main
jobs:
run-lint-and-tests:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16.4-alpine3.20
env:
POSTGRES_USER: hushline
POSTGRES_PASSWORD: hushline
POSTGRES_DB: hushline
steps:
- uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: "poetry"
- uses: actions/setup-node@v4
with:
node-version: 22
cache: "npm"
- name: Install Python dependencies
run: poetry install
- name: Install Node dependencies
run: npm install
- name: Lint
run: poetry run make lint
- name: Test
run: poetry run make test