We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63fb553 commit d83cc84Copy full SHA for d83cc84
.github/workflows/tests.yml
@@ -0,0 +1,33 @@
1
+name: Tests
2
+
3
+on:
4
+ pull_request:
5
+ branches: [main]
6
+ push:
7
8
9
+jobs:
10
+ tests:
11
+ runs-on: ubuntu-latest
12
+ services:
13
+ postgres:
14
+ image: postgres
15
+ env:
16
+ POSTGRES_PASSWORD: postgres
17
+ options: >-
18
+ --health-cmd pg_isready
19
+ --health-interval 10s
20
+ --health-timeout 5s
21
+ --health-retries 5
22
+ ports:
23
+ - 5432:5432
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+ - name: Set up Python
27
+ uses: actions/setup-python@v5
28
+ with:
29
+ python-version: "3.12"
30
+ - name: Install dependencies
31
+ run: poetry install
32
+ - name: Run pytest
33
+ run: pytest
0 commit comments