1
1
name : Testing
2
2
3
- on :
3
+ on :
4
4
pull_request :
5
5
workflow_dispatch :
6
6
7
7
jobs :
8
8
build :
9
9
env :
10
- USING_COVERAGE : ' 3.12'
11
- DATABASE_URL : " postgresql://postgres:postgres@localhost :5432/postgres"
10
+ USING_COVERAGE : " 3.12"
11
+ DATABASE_URL : " postgresql://postgres:postgres@postgresdbTest :5432/postgres"
12
12
runs-on : ubuntu-latest
13
13
services :
14
- postgres :
14
+ postgresdbTest :
15
15
image : postgres:latest
16
16
env :
17
17
POSTGRES_USER : postgres
@@ -24,19 +24,18 @@ jobs:
24
24
max-parallel : 10
25
25
matrix :
26
26
os : [ubuntu-latest, windows-latest]
27
- python-version : ["3.9","3.10","3.11","3.12"]
28
-
27
+ python-version : ["3.9", "3.10", "3.11", "3.12"]
29
28
steps :
30
- - uses : actions/checkout@v4
31
- - name : Set up Python ${{ matrix.python-version }}
32
- uses : actions/setup-python@v5
33
- with :
34
- python-version : ${{ matrix.python-version }}
35
- - name : Install dependencies
36
- run : |
37
- python -m pip install --upgrade pip
38
- pip install -r requirements.txt --use-deprecated=legacy-resolver
39
- - name : Test with pytest
40
- run : |
41
- pip install pytest
42
- pytest
29
+ - uses : actions/checkout@v4
30
+ - name : Set up Python ${{ matrix.python-version }}
31
+ uses : actions/setup-python@v5
32
+ with :
33
+ python-version : ${{ matrix.python-version }}
34
+ - name : Install dependencies
35
+ run : |
36
+ python -m pip install --upgrade pip
37
+ pip install -r requirements.txt --use-deprecated=legacy-resolver
38
+ - name : Test with pytest
39
+ run : |
40
+ pip install pytest
41
+ pytest
0 commit comments