Skip to content

Commit

Permalink
fix ?
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoon committed Jul 30, 2024
1 parent 6655ac1 commit 58d2042
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 26 deletions.
30 changes: 5 additions & 25 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,15 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop

permissions:
contents: read

jobs:

black-format:
name: Black Formatter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rickstaa/action-black@v1
with:
black_args: ". --check"

deploy:

runs-on: ubuntu-latest

steps:
Expand All @@ -47,10 +23,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build setuptools setuptools_scm
pip install build setuptools setuptools_scm black
- name: Check code format with Black
run: black --check .

- name: Build package
run: python -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def parse_requirements(filename):

setup(
name="ratchada_utils",
version="2.2.1",
version="2.2.2",
packages=find_packages(include=["ratchada_utils", "ratchada_utils.*"]),
package_data={
"ratchada_utils.processor": ["*.json", "*.py"],
Expand Down

0 comments on commit 58d2042

Please sign in to comment.