Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
myrrc committed Jul 17, 2023
1 parent a7b1722 commit 66e8199
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 42 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/release.yml

This file was deleted.

50 changes: 37 additions & 13 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,19 @@ jobs:

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

- name: prepare integration tests
# language=sh
run: |
cd tests
CLICKHOUSE_VERSION=${{ matrix.clickhouse }} python3 -m env_control create
cd ..
- name: run integration tests
# language=sh
run: |
cd tests
behave --show-timings --junit -D skip_setup
cd ..
#- name: prepare integration tests
# # language=sh
# run: |
# cd tests
# CLICKHOUSE_VERSION=${{ matrix.clickhouse }} python3 -m env_control create
# cd ..

#- name: run integration tests
# # language=sh
# run: |
# cd tests
# behave --show-timings --junit -D skip_setup
# cd ..

- name: publish test report
uses: mikepenz/action-junit-report@v3
Expand Down Expand Up @@ -145,3 +145,27 @@ jobs:
name: ch-tools_py-${{ matrix.target.python }}_ubuntu-${{ matrix.target.ubuntu }}.deb
path: out/ch-tools*.deb
if-no-files-found: error

#if: startsWith(github.ref, 'refs/tags/')
- name: create tag
uses: rickstaa/action-create-tag@v1
with:
tag: "latest"

#if: startsWith(github.ref, 'refs/tags/')
- name: create a release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
fail_on_unmatched_files: true
files: |
dist/*.whl
dist/*.tar.gz
out/ch-tools*.deb
#if: startsWith(github.ref, 'refs/tags/')
- name: publish to pypi
run: flit publish --no-use-vcs
env:
FLIT_USERNAME: "__token__"
FLIT_PASSWORD: "${{ secrets.PYPI_TOKEN }}"

0 comments on commit 66e8199

Please sign in to comment.