Skip to content

Commit 0aa43b1

Browse files
committed
fixing issues with action
1 parent 045743c commit 0aa43b1

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

.github/workflows/testing.yml

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
name: Testing
22

3-
on:
3+
on:
44
pull_request:
55
workflow_dispatch:
66

77
jobs:
88
build:
99
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"
1212
runs-on: ubuntu-latest
1313
services:
14-
postgres:
14+
postgresdbTest:
1515
image: postgres:latest
1616
env:
1717
POSTGRES_USER: postgres
@@ -24,19 +24,18 @@ jobs:
2424
max-parallel: 10
2525
matrix:
2626
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"]
2928
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

Comments
 (0)