Skip to content

Commit

Permalink
Start postgresql
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Nov 17, 2024
1 parent 895849e commit a1bb203
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test-devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,7 @@ jobs:
cache-on-failure: true
workspaces: sable -> target
- run: rustc --version
- run: sudo systemctl start postgresql.service
- name: Build Sable
run: |
cd $GITHUB_WORKSPACE/sable/
Expand All @@ -1003,7 +1004,8 @@ jobs:
- env:
IRCTEST_DEBUG_LOGS: ${{ runner.debug }}
name: Test with pytest
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
run: PYTEST_ARGS='--junit-xml pytest.xml --timeout 300' PATH=$HOME/.local/bin:$PATH
IRCTEST_POSTGRESQL_URL=postgresql:// PATH=$GITHUB_WORKSPACE/sable/target/debug/sbin:$GITHUB_WORKSPACE/sable/target/debug/bin:$GITHUB_WORKSPACE/sable/target/debug:$PATH
make sable
timeout-minutes: 30
- if: always()
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1154,6 +1154,7 @@ jobs:
cache-on-failure: true
workspaces: sable -> target
- run: rustc --version
- run: sudo systemctl start postgresql.service
- name: Build Sable
run: |
cd $GITHUB_WORKSPACE/sable/
Expand All @@ -1167,7 +1168,8 @@ jobs:
- env:
IRCTEST_DEBUG_LOGS: ${{ runner.debug }}
name: Test with pytest
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
run: PYTEST_ARGS='--junit-xml pytest.xml --timeout 300' PATH=$HOME/.local/bin:$PATH
IRCTEST_POSTGRESQL_URL=postgresql:// PATH=$GITHUB_WORKSPACE/sable/target/debug/sbin:$GITHUB_WORKSPACE/sable/target/debug/bin:$GITHUB_WORKSPACE/sable/target/debug:$PATH
make sable
timeout-minutes: 30
- if: always()
Expand Down
3 changes: 3 additions & 0 deletions workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ software:
workspaces: "sable -> target"
cache-on-failure: true
- run: rustc --version
- run: start postgresql
run: "sudo systemctl start postgresql.service"
env: "IRCTEST_POSTGRESQL_URL=postgresql://"
separate_build_job: false
build_script: |
cd $GITHUB_WORKSPACE/sable/
Expand Down

0 comments on commit a1bb203

Please sign in to comment.