@@ -63,76 +63,14 @@ jobs:
6363 -
uses :
getsentry/[email protected] 6464 - name : Check Clickhouse Setup
6565 run : |
66- printenv | sort
66+ set -x
67+ lsof -i :8123
68+ docker logs clickhouse-test
6769 curl 'http://localhost:8123/' --data-binary 'SELECT 1'
68- curl 'http://localhost:8123/?query=select%20number%20from%20numbers(10)' -v
6970 - name : Setup Test Env
7071 run : |
7172 pip install "coverage[toml]" tox
7273 - name : Test clickhouse_driver latest
7374 run : |
7475 set -x # print commands that are executed
7576 ./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver-latest"
76-
77- test-dbs-pinned :
78- name : DBs (pinned)
79- timeout-minutes : 30
80- runs-on : ${{ matrix.os }}
81- strategy :
82- fail-fast : false
83- matrix :
84- python-version : ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13"]
85- # python3.6 reached EOL and is no longer being supported on
86- # new versions of hosted runners on Github Actions
87- # ubuntu-20.04 is the last version that supported python3.6
88- # see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
89- os : [ubuntu-20.04]
90- services :
91- postgres :
92- image : postgres
93- env :
94- POSTGRES_PASSWORD : sentry
95- # Set health checks to wait until postgres has started
96- options : >-
97- --health-cmd pg_isready
98- --health-interval 10s
99- --health-timeout 5s
100- --health-retries 5
101- # Maps tcp port 5432 on service container to the host
102- ports :
103- - 5432:5432
104- env :
105- SENTRY_PYTHON_TEST_POSTGRES_HOST : localhost
106- SENTRY_PYTHON_TEST_POSTGRES_USER : postgres
107- SENTRY_PYTHON_TEST_POSTGRES_PASSWORD : sentry
108- steps :
109- 110- - uses : actions/setup-python@v5
111- with :
112- python-version : ${{ matrix.python-version }}
113- allow-prereleases : true
114- -
uses :
getsentry/[email protected] 115- - name : Check Clickhouse Setup
116- run : |
117- printenv | sort
118- curl 'http://localhost:8123/' --data-binary 'SELECT 1'
119- curl 'http://localhost:8123/?query=select%20number%20from%20numbers(10)' -v
120- - name : Setup Test Env
121- run : |
122- pip install "coverage[toml]" tox
123- - name : Test clickhouse_driver pinned
124- run : |
125- set -x # print commands that are executed
126- ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-clickhouse_driver"
127-
128- check_required_tests :
129- name : All pinned DBs tests passed
130- needs : test-dbs-pinned
131- # Always run this, even if a dependent job failed
132- if : always()
133- runs-on : ubuntu-20.04
134- steps :
135- - name : Check for failures
136- if : contains(needs.test-dbs-pinned.result, 'failure') || contains(needs.test-dbs-pinned.result, 'skipped')
137- run : |
138- echo "One of the dependent jobs has failed. You may need to re-run it." && exit 1
0 commit comments