Skip to content

Commit

Permalink
Merge pull request #3 from SamBroomy/lint-test
Browse files Browse the repository at this point in the history
Refactor workflow to improve readability and fix minor syntax issues
  • Loading branch information
SamBroomy authored Dec 9, 2024
2 parents f27812d + b8435b2 commit 94de7bd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

name: CI Pipeline

on:
Expand All @@ -14,9 +13,7 @@ permissions:
contents: read
pull-requests: write


jobs:

lint:
runs-on: ubuntu-latest
steps:
Expand All @@ -29,7 +26,7 @@ jobs:

- name: Install Dependencies
run: |
uv sync --dev
uv sync --dev
- name: Run Ruff
run: uv run ruff check --output-format=github .
test:
Expand All @@ -38,7 +35,7 @@ jobs:
needs: lint
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -68,6 +65,8 @@ jobs:
name: Build and Publish to PyPI
runs-on: ubuntu-latest
needs: test
permissions:
id-token: write
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
Expand All @@ -81,7 +80,7 @@ jobs:
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: "3.12"

- name: Bump Version, Build, Publish
run: uvx --from rust-just just publish-package
Expand Down

0 comments on commit 94de7bd

Please sign in to comment.