mirror of
https://github.com/yakhyo/uniface.git
synced 2025-12-30 09:02:25 +00:00
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
|
||||
|
||||
2
setup.py
2
setup.py
@@ -9,7 +9,7 @@ if os.path.exists("README.md"):
|
||||
|
||||
setup(
|
||||
name="uniface",
|
||||
version="0.1.3",
|
||||
version="0.1.4",
|
||||
packages=find_packages(),
|
||||
install_requires=[
|
||||
"numpy",
|
||||
|
||||
@@ -11,5 +11,5 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
__version__ = "0.1.3"
|
||||
__version__ = "0.1.4"
|
||||
__author__ = "Yakhyokhuja Valikhujaev"
|
||||
|
||||
Reference in New Issue
Block a user