Skip to content

Commit

Permalink
split testing and publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddalpiaz committed Aug 22, 2024
1 parent 2f78fbd commit df55860
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
on: [push]
on:
workflow_dispatch:
name: Publish Package
jobs:
uv-example-linux:
name: python-linux
publish-package:
name: publish-package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on: [push]
name: Test Package
jobs:
test-package:
name: test-package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Set up Python
run: uv python install
- name: Install the project
run: uv sync --all-extras --dev
- name: Test package
run: uv run pytest

0 comments on commit df55860

Please sign in to comment.