From ee1a5aa61b32c15fb54d051de16b7fc2ba8f230a Mon Sep 17 00:00:00 2001 From: Tom Date: Thu, 13 Feb 2025 14:01:49 +0000 Subject: [PATCH] Update actions --- .../workflows/{CI.yml => build_wheels.yml} | 12 ++----- .github/workflows/test.yml | 34 +++++++++++++++++++ pyproject.toml | 2 +- 3 files changed, 38 insertions(+), 10 deletions(-) rename .github/workflows/{CI.yml => build_wheels.yml} (97%) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/build_wheels.yml similarity index 97% rename from .github/workflows/CI.yml rename to .github/workflows/build_wheels.yml index 5c0ed8f..0e8d8c2 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/build_wheels.yml @@ -3,17 +3,11 @@ # # maturin generate-ci github # -name: CI +name: Build Python Wheels and push to PyPI on: - push: - branches: - - main - - new_tree - tags: - - '*' - pull_request: - workflow_dispatch: + release: + types: [published] permissions: contents: read diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..47ee3fb --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +# This file is autogenerated by maturin v1.7.7 +# To update, run +# +# maturin generate-ci github +# +name: Test + +on: + push: + branches: + - main + - develop + pull_request: + workflow_dispatch: + + +permissions: + contents: read + +jobs: + linux: + runs-on: + - ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.x + - name: Build and Install + run: | + python -m pip install ".[rust,dev]" + - name: Test + run: | + pytest \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 76c5fc1..994471d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,5 +57,5 @@ dev = [ "flake8", "pre-commit", "isort", - "responses", + ] \ No newline at end of file