Skip to content

Commit a1bb203

Browse files
committed
Start postgresql
1 parent 895849e commit a1bb203

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/test-devel.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,7 @@ jobs:
990990
cache-on-failure: true
991991
workspaces: sable -> target
992992
- run: rustc --version
993+
- run: sudo systemctl start postgresql.service
993994
- name: Build Sable
994995
run: |
995996
cd $GITHUB_WORKSPACE/sable/
@@ -1003,7 +1004,8 @@ jobs:
10031004
- env:
10041005
IRCTEST_DEBUG_LOGS: ${{ runner.debug }}
10051006
name: Test with pytest
1006-
run: PYTEST_ARGS='--junit-xml pytest.xml --timeout 300' PATH=$HOME/.local/bin:$PATH PATH=$GITHUB_WORKSPACE/sable/target/debug/sbin:$GITHUB_WORKSPACE/sable/target/debug/bin:$GITHUB_WORKSPACE/sable/target/debug:$PATH
1007+
run: PYTEST_ARGS='--junit-xml pytest.xml --timeout 300' PATH=$HOME/.local/bin:$PATH
1008+
IRCTEST_POSTGRESQL_URL=postgresql:// PATH=$GITHUB_WORKSPACE/sable/target/debug/sbin:$GITHUB_WORKSPACE/sable/target/debug/bin:$GITHUB_WORKSPACE/sable/target/debug:$PATH
10071009
make sable
10081010
timeout-minutes: 30
10091011
- if: always()

.github/workflows/test-stable.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,7 @@ jobs:
11541154
cache-on-failure: true
11551155
workspaces: sable -> target
11561156
- run: rustc --version
1157+
- run: sudo systemctl start postgresql.service
11571158
- name: Build Sable
11581159
run: |
11591160
cd $GITHUB_WORKSPACE/sable/
@@ -1167,7 +1168,8 @@ jobs:
11671168
- env:
11681169
IRCTEST_DEBUG_LOGS: ${{ runner.debug }}
11691170
name: Test with pytest
1170-
run: PYTEST_ARGS='--junit-xml pytest.xml --timeout 300' PATH=$HOME/.local/bin:$PATH PATH=$GITHUB_WORKSPACE/sable/target/debug/sbin:$GITHUB_WORKSPACE/sable/target/debug/bin:$GITHUB_WORKSPACE/sable/target/debug:$PATH
1171+
run: PYTEST_ARGS='--junit-xml pytest.xml --timeout 300' PATH=$HOME/.local/bin:$PATH
1172+
IRCTEST_POSTGRESQL_URL=postgresql:// PATH=$GITHUB_WORKSPACE/sable/target/debug/sbin:$GITHUB_WORKSPACE/sable/target/debug/bin:$GITHUB_WORKSPACE/sable/target/debug:$PATH
11711173
make sable
11721174
timeout-minutes: 30
11731175
- if: always()

workflows.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,9 @@ software:
268268
workspaces: "sable -> target"
269269
cache-on-failure: true
270270
- run: rustc --version
271+
- run: start postgresql
272+
run: "sudo systemctl start postgresql.service"
273+
env: "IRCTEST_POSTGRESQL_URL=postgresql://"
271274
separate_build_job: false
272275
build_script: |
273276
cd $GITHUB_WORKSPACE/sable/

0 commit comments

Comments
 (0)