Skip to content

Commit ea4d6df

Browse files
authored
publish yaylib 1.5.0 beta 1 (#70)
2 parents e4240ad + f050519 commit ea4d6df

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+822
-545
lines changed

.github/workflows/docs.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ jobs:
4141
poetry config --list
4242
4343
- name: Install dependencies
44-
run: poetry install
44+
run: |
45+
poetry install
46+
./poetry_plugins.sh
4547
4648
- name: Build Sphinx
4749
run: |
48-
poetry run make doc
50+
make doc
4951
5052
- name: Setup Pages
5153
uses: actions/configure-pages@v3

.github/workflows/tests.yaml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Run unit tests
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
pull_request:
8+
branches:
9+
- develop
10+
types:
11+
- opened
12+
- ready_for_review
13+
- synchronize
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
python-version: ["3.10", "3.11", "3.12"]
21+
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Install Poetry
27+
run: pipx install poetry
28+
29+
- name: Setup Python ${{ matrix.python-version }}
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
34+
- name: Display Python version
35+
run: python -c "import sys; print(sys.version)"
36+
37+
- name: Check poetry
38+
run: |
39+
poetry --version
40+
poetry config --list
41+
42+
- name: Install dependencies
43+
run: |
44+
poetry install
45+
./poetry_plugins.sh
46+
47+
- name: Run unit tests
48+
run: |
49+
make test

Makefile

+7-23
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,17 @@ up: # 実行環境の構築&起動
88
down: # コンテナ停止
99
docker compose down
1010

11-
shell:
11+
shell: # コンテナのシェルを起動
1212
docker compose exec yaylib bash
1313

14-
# Distribution
15-
.PHONY: build clean publish
14+
# テスト
15+
.PHONY: test
1616

17-
build: # パッケージのビルド
18-
python setup.py sdist
19-
python setup.py bdist_wheel
17+
test:
18+
poetry run python -m unittest discover -s tests -p "test_*.py"
2019

21-
clean: # ビルドファイル削除
22-
rm -rf build/
23-
rm -rf dist/
24-
rm -rf yaylib.egg-info/
25-
26-
publish: # PYPIにパッケージのアップロード
27-
make build
28-
twine upload --repository pypi dist/*
29-
make clean
30-
31-
# Documentation
20+
# ドキュメント
3221
.PHONY: doc clean-doc
3322

3423
doc: # ドキュメントの生成
35-
make clean-doc
36-
sphinx-apidoc -f -e -o ./docs . tests/* *_test.py setup.py
37-
sphinx-build -M html ./docs ./docs/_build
38-
39-
clean-doc: # temp
40-
rm -rf docs/yaylib.*rst docs/modules.rst docs/_build
24+
poetry run sphinx-build -M html ./docs ./docs/_build

0 commit comments

Comments
 (0)