Skip to content

Commit

Permalink
TEMP: Try having wait_for.sh in server. Skip python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
roekatz committed Jul 10, 2024
1 parent ec74f77 commit e2cf152
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 38 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,44 +13,6 @@ on:
workflow_dispatch:

jobs:
build:
services:
redis:
image: redis
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f ./tests/requirements.txt ]; then pip install -r ./tests/requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
test-docker:
runs-on: ubuntu-latest
steps:
Expand Down
1 change: 1 addition & 0 deletions docker/docker-compose-with-callbacks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ services:
- "7002:7002"
depends_on:
- broadcast_channel
command: sh -c "exec ./wait-for.sh broadcast_channel:5432 --timeout=20 -- ./start.sh"
opal_client:
# by default we run opal-client from latest official image
image: permitio/opal-client:latest
Expand Down

0 comments on commit e2cf152

Please sign in to comment.