Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
aminediro committed Nov 24, 2024
1 parent b4f6ebc commit 2395be2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,17 @@ jobs:
--tlskey "./libs/megaparse_sdk/tests/certs/client-key.pem" \
--tlsverify > nats.log 2>&1 &
- name: 🔍 Verify NATS Server is Running
run: |
sleep 1 # Give the server some time to start
if nc -zv localhost 4222; then
echo "✅ NATS Server is running on port 4222."
else
echo "❌ Failed to start NATS Server."
cat nats.log
exit 1
fi
- name: 🔨 Install the latest version of rye
uses: eifinger/setup-rye@v4
with:
Expand All @@ -75,17 +86,6 @@ jobs:
run: |
UV_INDEX_STRATEGY=unsafe-first-match rye sync --no-lock
- name: 🔍 Verify NATS Server is Running
run: |
sleep 1 # Give the server some time to start
if nc -zv localhost 4222; then
echo "✅ NATS Server is running on port 4222."
else
echo "❌ Failed to start NATS Server."
cat nats.log
exit 1
fi
- name: 🚀 Run tests
run: |
rye test -p megaparse-sdk
2 changes: 1 addition & 1 deletion libs/megaparse_sdk/tests/test_nats_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

logger = logging.getLogger(__name__)

NATS_URL = "nats://test@localhost:4222"
NATS_URL = "nats://test@127.0.0.1:4222"
NATS_SUBJECT = "parsing"
SSL_CERT_FILE = "./tests/certs/client-cert.pem"
SSL_KEY_FILE = "./tests/certs/client-key.pem"
Expand Down

0 comments on commit 2395be2

Please sign in to comment.