ci(ci_yaml): adding release on tag and unit/integration test running
This commit is contained in:
parent
67c8456a22
commit
3781d6f76b
1 changed files with 42 additions and 14 deletions
56
.github/workflows/CI.yaml
vendored
56
.github/workflows/CI.yaml
vendored
|
|
@ -19,6 +19,23 @@ permissions:
|
|||
contents: read
|
||||
|
||||
jobs:
|
||||
unit_test:
|
||||
name: Unit tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: cargo test --all-features
|
||||
rust_integration_test:
|
||||
name: Rust Integration test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: cd tests/rust-test && ./test.sh
|
||||
python_integration_test:
|
||||
name: Python Integration test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: cd tests/python-sync && ./test.sh
|
||||
linux:
|
||||
runs-on: ${{ matrix.platform.runner }}
|
||||
defaults:
|
||||
|
|
@ -180,17 +197,28 @@ jobs:
|
|||
name: wheels-sdist
|
||||
path: dist
|
||||
|
||||
#release:
|
||||
# name: Release
|
||||
# runs-on: ubuntu-latest
|
||||
# if: "startsWith(github.ref, 'refs/tags/')"
|
||||
# needs: [linux, musllinux, windows, macos, sdist]
|
||||
# steps:
|
||||
# - uses: actions/download-artifact@v4
|
||||
# - name: Publish to PyPI
|
||||
# uses: PyO3/maturin-action@v1
|
||||
# env:
|
||||
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
||||
# with:
|
||||
# command: upload
|
||||
# args: --non-interactive --skip-existing wheels-*/*
|
||||
python_release:
|
||||
name: Python Release
|
||||
runs-on: ubuntu-latest
|
||||
if: "startsWith(github.ref, 'refs/tags/')"
|
||||
needs: [linux, musllinux, windows, macos, sdist]
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
- name: Publish to PyPI
|
||||
uses: PyO3/maturin-action@v1
|
||||
env:
|
||||
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
||||
with:
|
||||
command: upload
|
||||
args: --non-interactive --skip-existing wheels-*/*
|
||||
crate_release:
|
||||
name: Crates.io Release
|
||||
runs-on: ubuntu-latest
|
||||
if: "startsWith(github.ref, 'refs/tags/')"
|
||||
needs: [linux, musllinux, windows, macos, sdist]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Cargo publish
|
||||
run: cargo publish --token ${CRATES_TOKEN}
|
||||
env:
|
||||
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue