Skip to content

Commit a5bb837

Browse files
committed
update github action
1 parent 957da82 commit a5bb837

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@ jobs:
1111
run: |
1212
python -m pip install --upgrade pip
1313
python -m pip install wheel
14+
python -m pip install build
1415
pip install -r requirements.txt
15-
- name: Test with pytest
16-
run: |
17-
coverage run --omit="*/test*" -m unittest -v
18-
- uses: codecov/codecov-action@v3
16+
- name: Test with unittest
17+
run: coverage run --omit="*/test*" -m unittest -v
18+
- name: Upload Coverage to codecov
19+
uses: codecov/codecov-action@v3
20+
- name: Publish distribution 📦 to PyPI
21+
if: startsWith(github.ref, 'refs/tags')
22+
uses: pypa/gh-action-pypi-publish@release/v1
23+
with:
24+
password: ${{ secrets.PYPI_API_TOKEN }}

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
prune test

README.ko.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# comcigan-py
22

3-
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/comcigan?logo=python&style=flat-square)](https://pypi.org/project/comcigan/) [![PyPI](https://img.shields.io/pypi/v/comcigan?logo=python&style=flat-square)](https://pypi.org/project/comcigan/) [![PyPI - Downloads](https://img.shields.io/pypi/dm/comcigan?style=flat-square)](https://pypi.org/project/comcigan/) [![Codecov](https://img.shields.io/codecov/c/github/Team-IF/comcigan-py?logo=codecov&style=flat-square)](https://app.codecov.io/gh/Team-IF/comcigan-py)
3+
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/Coder-Iro/comcigan-py/test.yml?label=action&logo=github&style=flat-square)](https://github.com/Coder-Iro/comcigan-py/actions) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/comcigan?logo=python&style=flat-square)](https://pypi.org/project/comcigan/) [![PyPI](https://img.shields.io/pypi/v/comcigan?logo=python&style=flat-square)](https://pypi.org/project/comcigan/) [![PyPI - Downloads](https://img.shields.io/pypi/dm/comcigan?style=flat-square)](https://pypi.org/project/comcigan/) [![Codecov](https://img.shields.io/codecov/c/github/Coder-Iro/comcigan-py?logo=codecov&style=flat-square)](https://app.codecov.io/gh/Coder-Iro/comcigan-py)
44

55
[English](./README.md) | [**한국어**](./README.ko.md)
66

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# comcigan-py
22

3-
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/comcigan?logo=python&style=flat-square)](https://pypi.org/project/comcigan/) [![PyPI](https://img.shields.io/pypi/v/comcigan?logo=python&style=flat-square)](https://pypi.org/project/comcigan/) [![PyPI - Downloads](https://img.shields.io/pypi/dm/comcigan?style=flat-square)](https://pypi.org/project/comcigan/) [![Codecov](https://img.shields.io/codecov/c/github/Team-IF/comcigan-py?logo=codecov&style=flat-square)](https://app.codecov.io/gh/Team-IF/comcigan-py)
3+
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/Coder-Iro/comcigan-py/test.yml?label=action&logo=github&style=flat-square)](https://github.com/Coder-Iro/comcigan-py/actions) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/comcigan?logo=python&style=flat-square)](https://pypi.org/project/comcigan/) [![PyPI](https://img.shields.io/pypi/v/comcigan?logo=python&style=flat-square)](https://pypi.org/project/comcigan/) [![PyPI - Downloads](https://img.shields.io/pypi/dm/comcigan?style=flat-square)](https://pypi.org/project/comcigan/) [![Codecov](https://img.shields.io/codecov/c/github/Coder-Iro/comcigan-py?logo=codecov&style=flat-square)](https://app.codecov.io/gh/Coder-Iro/comcigan-py)
44

55
[**English**](./README.md) | [한국어](./README.ko.md)
66

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from setuptools import find_packages, setup
44

55
version = (
6-
environ["TRAVIS_TAG"].lstrip("v")
7-
if environ["TRAVIS"] == "true"
6+
environ["GITHUB_REF_NAME"].lstrip("v")
7+
if environ.get("GITHUB_ACTIONS")
88
else environ["VERSION_NUMBER"]
99
)
1010

@@ -14,10 +14,10 @@
1414
author="Team IF",
1515
author_email="Coder-Iro@teamif.io",
1616
description="Unofficial Comcigan API python wrapper",
17-
long_description=open("README.md").read(),
17+
long_description=open("README.md", "r", encoding="UTF-8").read(),
1818
long_description_content_type="text/markdown",
1919
url="https://github.com/Coder-Iro/comcigan-py",
20-
packages=find_packages(),
20+
packages=find_packages(exclude=["test"]),
2121
install_requires=["requests", "beautifulsoup4", "aiohttp", "lxml"],
2222
python_requires=">=3.7",
2323
classifiers=[

0 commit comments

Comments
 (0)