Skip to content

Commit

Permalink
Update python-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nayandas69 authored Jan 6, 2025
1 parent 61919d1 commit c8f7c27
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ on:
branches:
- main
release:
types: [created]
types:
- published

jobs:
test:
Expand All @@ -31,14 +32,15 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
# Step 4: Run tests (if you add tests)
# Step 4: Run tests
- name: Run tests
run: |
# Add your test commands (e.g., pytest)
echo "No tests defined yet. Add your test commands here."
echo "Running tests (add your test commands)"
# Example: pytest tests/
echo "Tests completed."
publish:
if: github.event_name == 'release'
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit c8f7c27

Please sign in to comment.