Skip to content

Commit

Permalink
Fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Uxio0 committed Nov 23, 2023
1 parent 20696e9 commit 6307d31
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 49 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,37 +31,6 @@ jobs:
strategy:
matrix:
python-version: ["3.11"]
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
postgres:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
rabbitmq:
image: rabbitmq:alpine
options: >-
--health-cmd "rabbitmqctl await_startup"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- "5672:5672"
steps:
- name: Setup and run ganache
run: |
Expand All @@ -86,7 +55,6 @@ jobs:
coverage run --source=$SOURCE_FOLDER -m pytest -rxXs --reruns 3
env:
SOURCE_FOLDER: safe_price_service
DATABASE_URL: psql://postgres:postgres@localhost/postgres
DJANGO_SETTINGS_MODULE: config.settings.test
ETHEREUM_MAINNET_NODE: ${{ secrets.ETHEREUM_MAINNET_NODE }}
ETHEREUM_NODES_URLS: http://localhost:8545
Expand Down
15 changes: 0 additions & 15 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,6 @@ services:
depends_on:
- web

redis:
image: redis:alpine
ports:
- "6379:6379"
command:
- --appendonly yes

db:
image: postgres:14-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres

web:
build:
context: .
Expand Down
2 changes: 1 addition & 1 deletion safe_price_service/tokens/tests/test_price_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def test_get_token_usd_price(self):
self.assertAlmostEqual(
token_fiat_price_with_timestamp.fiat_price,
token_fiat_price_with_timestamp_from_coingecko.fiat_price,
delta=5.0,
delta=10.0,
)

def test_get_token_usd_price_native_coin(self):
Expand Down
1 change: 0 additions & 1 deletion safe_price_service/utils/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


def custom_exception_handler(exc, context):

if isinstance(exc, NodeConnectionException):
response = Response(status=status.HTTP_503_SERVICE_UNAVAILABLE)

Expand Down

0 comments on commit 6307d31

Please sign in to comment.