Skip to content

Commit

Permalink
testing initial
Browse files Browse the repository at this point in the history
  • Loading branch information
myrrc committed Jul 11, 2023
1 parent 5c8e8b2 commit 1cca971
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 195 deletions.
48 changes: 32 additions & 16 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ jobs:
strategy:
matrix:
target:
- {python: "3.6.15", ubuntu: "20.04"}
# - {python: "3.6.15", ubuntu: "20.04"}
- {python: "3.10.12", ubuntu: "latest"}
# a copy-paste of the above as github CI can't use env context in matrices
clickhouse:
- "21.8.15.7"
- "22.3.20.29"
- "22.8.19.10"
- "23.3.4.17"
- "23.4.4.16"
- "23.5.3.24"
#- "21.8.15.7"
#- "22.3.20.29"
#- "22.8.19.10"
#- "23.3.4.17"
#- "23.4.4.16"
#- "23.5.3.24"
- "latest"

runs-on: ubuntu-${{ matrix.target.ubuntu }}
Expand Down Expand Up @@ -87,15 +87,31 @@ jobs:

- {name: run unit tests, run: pytest}

- name: prepare docker images for integration tests
run: CLICKHOUSE_VERSION=${{ matrix.clickhouse }} make test-integration-prepare

- name: run integration tests
run: make test-integration
#- name: prepare docker images for integration tests
# run: CLICKHOUSE_VERSION=${{ matrix.clickhouse }} make test-integration-prepare
#
#- name: run integration tests
# run: make test-integration

- name: publish test report
uses: mikepenz/action-junit-report@v3
if: always()
#- name: publish test report
# uses: mikepenz/action-junit-report@v3
# if: always()
# with:
# report_paths: 'tests/reports/*.xml'

- name: create a release
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.clickhouse == 'latest' && matrix.target.ubuntu == 'latest' }}
uses: softprops/action-gh-release@v1
with:
report_paths: 'tests/reports/*.xml'
generate_release_notes: true
fail_on_unmatched_files: true
files: |
dist/*.whl
dist/*.tar.gz
- name: publish to pypi
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.clickhouse == 'latest' && matrix.target.ubuntu == 'latest' }}
run: flit publish --no-use-vcs
env:
FLIT_USERNAME: "__token__"
FLIT_PASSWORD: "${{ secrets.PYPI_TOKEN }}"
179 changes: 0 additions & 179 deletions .style.yapf

This file was deleted.

0 comments on commit 1cca971

Please sign in to comment.