From 36f6173d96e0446180ab5b4f3bacdb0dfb98f741 Mon Sep 17 00:00:00 2001 From: Seth Bromberger Date: Fri, 19 Dec 2025 13:35:48 -0800 Subject: [PATCH] 0.2.1 yaml fix --- .github/workflows/publish-py.yaml | 7 +--- py/.github/workflows/pr.yml | 35 ------------------- py/.github/workflows/publish.yml | 57 ------------------------------- 3 files changed, 1 insertion(+), 98 deletions(-) delete mode 100644 py/.github/workflows/pr.yml delete mode 100644 py/.github/workflows/publish.yml diff --git a/.github/workflows/publish-py.yaml b/.github/workflows/publish-py.yaml index 19fedb0..940a76c 100644 --- a/.github/workflows/publish-py.yaml +++ b/.github/workflows/publish-py.yaml @@ -17,11 +17,7 @@ jobs: python-version: "3.10" - name: Install pypa - run: >- - python3 -m - pip install - build - --user + run: run: python3 -m pip install build - name: Build wheel and tarball run: python3 -m build working-directory: py/ @@ -35,7 +31,6 @@ jobs: publish-to-pypi: name: Publish distribution to PyPI runs-on: ubuntu-latest - # if: startsWith(github.ref, 'refs/tags/') # only publish on tag pushes needs: - build # environment: diff --git a/py/.github/workflows/pr.yml b/py/.github/workflows/pr.yml deleted file mode 100644 index 417893a..0000000 --- a/py/.github/workflows/pr.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Pull Request Quality Check - -on: - pull_request: - types: [opened, synchronize, reopened] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: '3.10' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi - - - name: Lint with ruff - run: | - ruff check src/jsonlogic --output-format=concise --statistics --line-length=120 - - - - name: MyPy - run: | - mypy src/jsonlogic --ignore-missing-imports - - - - name: Pytest - run: | - coverage run --source . -m pytest && coverage report -m --fail-under 95 diff --git a/py/.github/workflows/publish.yml b/py/.github/workflows/publish.yml deleted file mode 100644 index d9d42bd..0000000 --- a/py/.github/workflows/publish.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: Publish distribution to PyPI -working-directory: py/ -on: - release: - types: [published] - -jobs: - build: - name: Build distribution - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - name: Python setup - uses: actions/setup-python@v5 - with: - python-version: "3.10" - - - name: Install pypa - run: >- - python3 -m - pip install - build - --user - - name: Build wheel and tarball - run: python3 -m build - - name: Store the packages - uses: actions/upload-artifact@v4 - with: - name: python-package-distributions - path: dist/ - - - publish-to-pypi: - name: Publish distribution to PyPI - runs-on: ubuntu-latest - # if: startsWith(github.ref, 'refs/tags/') # only publish on tag pushes - needs: - - build - environment: - name: pypi - url: https://pypi.org/p/jsonlogic-py - permissions: - id-token: write - - steps: - - name: Download dists - uses: actions/download-artifact@v4 - with: - name: python-package-distributions - path: dist/ - - name: Publish distribution to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - verbose: true - -