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
|
contents: read
|
||||||
|
|
||||||
jobs:
|
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:
|
linux:
|
||||||
runs-on: ${{ matrix.platform.runner }}
|
runs-on: ${{ matrix.platform.runner }}
|
||||||
defaults:
|
defaults:
|
||||||
|
|
@ -180,17 +197,28 @@ jobs:
|
||||||
name: wheels-sdist
|
name: wheels-sdist
|
||||||
path: dist
|
path: dist
|
||||||
|
|
||||||
#release:
|
python_release:
|
||||||
# name: Release
|
name: Python Release
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# if: "startsWith(github.ref, 'refs/tags/')"
|
if: "startsWith(github.ref, 'refs/tags/')"
|
||||||
# needs: [linux, musllinux, windows, macos, sdist]
|
needs: [linux, musllinux, windows, macos, sdist]
|
||||||
# steps:
|
steps:
|
||||||
# - uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
# - name: Publish to PyPI
|
- name: Publish to PyPI
|
||||||
# uses: PyO3/maturin-action@v1
|
uses: PyO3/maturin-action@v1
|
||||||
# env:
|
env:
|
||||||
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
# with:
|
with:
|
||||||
# command: upload
|
command: upload
|
||||||
# args: --non-interactive --skip-existing wheels-*/*
|
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