Skip to content

Commit

Permalink
disable ssh test in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nakagami committed Jan 26, 2024
1 parent 254d58d commit 4634c1f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test_micropg.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@

conn.close()


# test ssl connection
conn = micropg.connect(
host='127.0.0.1', user='postgres', password='password', database='test_micropg', use_ssl=True
)
cur = conn.cursor()
cur.execute("SELECT id, name FROM test_micropg")
assert cur.fetchall() == [(1, "test"), (2, "test2")]
if not os.environ('GITHUB_ACTIONS'):
# test ssl connection
conn = micropg.connect(
host='127.0.0.1', user='postgres', password='password', database='test_micropg', use_ssl=True
)
cur = conn.cursor()
cur.execute("SELECT id, name FROM test_micropg")
assert cur.fetchall() == [(1, "test"), (2, "test2")]

conn.close()

0 comments on commit 4634c1f

Please sign in to comment.