Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI #103

Merged
merged 3 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/fuzzy-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ on:
- "cmake/**"
- "src/**"
- "test/scripts/fuzzer.py"
- "utils/devel/stubgen.py"
- "utils/devel/symlink_pyarrow_libs.py"
- "CMakeLists.txt"
- "conanfile.py"
- "pyproject.toml"
Expand All @@ -22,8 +20,6 @@ on:
- "cmake/**"
- "src/**"
- "test/scripts/fuzzer.py"
- "utils/devel/stubgen.py"
- "utils/devel/symlink_pyarrow_libs.py"
- "CMakeLists.txt"
- "conanfile.py"
- "pyproject.toml"
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ on:
- "src/**"
- "test/**"
- "utils/devel/stubgen.py"
- "utils/devel/symlink_pyarrow_libs.py"
- "CMakeLists.txt"
- "conanfile.py"
- "pyproject.toml"
Expand All @@ -25,7 +24,6 @@ on:
- "src/**"
- "test/**"
- "utils/devel/stubgen.py"
- "utils/devel/symlink_pyarrow_libs.py"
- "CMakeLists.txt"
- "conanfile.py"
- "pyproject.toml"
Expand Down
39 changes: 3 additions & 36 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ on:
- "src/**"
- "test/**"
- "utils/devel/stubgen.py"
- "utils/devel/symlink_pyarrow_libs.py"
- "CMakeLists.txt"
- "conanfile.py"
- "pyproject.toml"
Expand All @@ -29,7 +28,6 @@ on:
- "src/**"
- "test/**"
- "utils/devel/stubgen.py"
- "utils/devel/symlink_pyarrow_libs.py"
- "CMakeLists.txt"
- "conanfile.py"
- "pyproject.toml"
Expand All @@ -56,6 +54,8 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v5
Expand Down Expand Up @@ -292,37 +292,6 @@ jobs:
if-no-files-found: error
retention-days: 7

test-pypi-publish:
name: Upload wheels to Test PyPI
if: github.event_name == 'push'
needs: [package-artifacts]
environment:
name: Test PyPI
url: https://test.pypi.org/p/hictkpy
permissions:
id-token: write
runs-on: ubuntu-latest

steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: dist
merge-multiple: true

- name: Extract dist.tar
run: |
tar -xf dist.tar --wildcards "*cp312*.whl" "*.tar.gz"
rm dist.tar

- name: Upload wheels to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
attestations: true
print-hash: true
repository-url: https://test.pypi.org/legacy/
verbose: true

pypi-publish:
name: Upload release to PyPI
if: github.event_name == 'release' && github.event.action == 'published'
Expand Down Expand Up @@ -362,7 +331,6 @@ jobs:
- build-sdist
- build-wheels
- package-artifacts
- test-pypi-publish
- pypi-publish

steps:
Expand All @@ -372,8 +340,7 @@ jobs:
needs.build-wheels.result != 'success' ||
needs.package-artifacts.result != 'success' ||
(
needs.test-pypi-publish.result != 'success' &&
needs.pypi-publish.result != 'success' &&
github.event_name != 'workflow_dispatch'
needs.pypi-publish.result != 'skipped'
)
run: exit 1
Loading