Skip to content

Commit

Permalink
fixing quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbuckley committed Jan 23, 2025
1 parent a6451e8 commit 49a1e6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/check_smoke_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,17 @@ jobs:
- name: Start RecordLinker Service and Run Smoke Tests
run: |
if [[ "${{ matrix.database }}" == "postgres" ]]; then
export DB_URI=postgresql+psycopg2://postgres:pw@localhost:5432/postgres
export DB_URI="postgresql+psycopg2://postgres:pw@localhost:5432/postgres"
elif [[ "${{ matrix.database }}" == "sqlite" ]]; then
export DB_URI=sqlite:///testdb.sqlite3
export DB_URI="sqlite:///testdb.sqlite3"
elif [[ "${{ matrix.database }}" == "mysql" ]]; then
export DB_URI=mysql+pymysql://root:pw@localhost:3306/mysql
export DB_URI="mysql+pymysql://root:pw@localhost:3306/mysql"
elif [[ "${{ matrix.database }}" == "sqlserver" ]]; then
export DB_URI="mssql+pyodbc://sa:YourStrong!Passw0rd@localhost:1433/master?driver=ODBC+Driver+18+for+SQL+Server&TrustServerCertificate=yes"
fi
echo "DB_URI: $DB_URI"
docker run -d --name rl-service --network="host" -e DB_URI="$DB_URI" rl-service-image
TRIES=3
while ! curl -s http://localhost:8080/ | grep "OK"; do
echo "Waiting for RL Service to become healthy..."
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/check_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,16 @@ jobs:
- name: Run Pytest with the matrix database
run: |
if [[ "${{ matrix.database }}" == "postgres" ]]; then
export TEST_DB_URI=postgresql+psycopg2://postgres:pw@localhost:5432/postgres
export TEST_DB_URI="postgresql+psycopg2://postgres:pw@localhost:5432/postgres"
elif [[ "${{ matrix.database }}" == "sqlite" ]]; then
export TEST_DB_URI=sqlite:///testdb.sqlite3
export TEST_DB_URI="sqlite:///testdb.sqlite3"
elif [[ "${{ matrix.database }}" == "mysql" ]]; then
export TEST_DB_URI=mysql+pymysql://root:pw@localhost:3306/mysql
export TEST_DB_URI="mysql+pymysql://root:pw@localhost:3306/mysql"
elif [[ "${{ matrix.database }}" == "sqlserver" ]]; then
export TEST_DB_URI=mssql+pyodbc://sa:YourStrong!Passw0rd@localhost:1433/master?driver=ODBC+Driver+18+for+SQL+Server&TrustServerCertificate=yes
export TEST_DB_URI="mssql+pyodbc://sa:YourStrong!Passw0rd@localhost:1433/master?driver=ODBC+Driver+18+for+SQL+Server&TrustServerCertificate=yes"
fi
echo "TEST_DB_URI: $TEST_DB_URI"
pytest --cov=recordlinker tests/unit
mv .coverage coverage-${{ matrix.database }}.dat
Expand Down

0 comments on commit 49a1e6f

Please sign in to comment.