Skip to content

Commit

Permalink
Merge branch 'release/v0.15.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
suminb committed Aug 6, 2024
2 parents e892eda + 2b3c9a3 commit f58b6ed
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 10 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,33 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.10", "3.9", "3.8"]
python-version: ["3.12", "3.11", "3.10", "3.9", "3.8"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Get pip cache dir
id: pip-cache
run: |
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: pip cache
uses: actions/cache@v3
with:
path: |
${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip
- name: Install dependencies
env:
UV_SYSTEM_PYTHON: true
run: |
python -m pip install --upgrade pip
pip install black mypy
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f tests/requirements.txt ]; then pip install -r tests/requirements.txt; fi
pip install -e .
python -m pip install --upgrade pip uv
uv pip install black mypy
uv pip install -e .
if [ -f tests/requirements.txt ]; then uv pip install -r tests/requirements.txt; fi
- name: Lint with black and mypy
run: |
black --check .
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build

on:
push:
tags:
- v*

jobs:
build_dist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build dist and wheel
run: pipx run build --sdist --wheel

- uses: actions/upload-artifact@v4
with:
name: cibw-dist
path: dist/*

# upload_pypi:
# needs: [build_dist]
# runs-on: [self-hosted, linux, x64, cpu-only]
# environment: release
# permissions:
# id-token: write
# steps:
# - uses: actions/download-artifact@v4
# with:
# pattern: cibw-*
# path: dist
# merge-multiple: true

# - uses: pypa/gh-action-pypi-publish@release/v1

upload_release:
needs: [build_dist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
pattern: cibw-*
path: dist
merge-multiple: true

- name: Release
uses: softprops/action-gh-release@v1
with:
files: dist/*
2 changes: 1 addition & 1 deletion hanja/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
__all__ = ["is_hanja", "is_valid_mode", "split_hanja", "translate"]
__author__ = "Sumin Byeon"
__email__ = "[email protected]"
__version__ = "0.14.1"
__version__ = "0.15.1"


# Copied from https://wiki.python.org/moin/PythonDecoratorLibrary
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pyyaml==6.0
pyyaml==6.0.1

pytest
pytest-cov
Expand Down

0 comments on commit f58b6ed

Please sign in to comment.