mirror of
https://github.com/yakhyo/uniface.git
synced 2025-12-30 09:02:25 +00:00
chore: Bump to version 0.1.4
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -3,12 +3,12 @@ name: Build, Test, and Publish
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- main # Trigger on pushes to main
|
||||
tags:
|
||||
- "v*.*.*" # Trigger publish on version tags
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- main # Trigger checks on pull requests to main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -33,12 +33,12 @@ jobs:
|
||||
python -m pip install .[dev] || pip install pytest # Use extras_require if available
|
||||
|
||||
- name: Run Tests
|
||||
run: |
|
||||
pytest
|
||||
run: pytest
|
||||
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build # Publish only if tests pass
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' # Trigger only on pushes to main
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
||||
Reference in New Issue
Block a user