-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from kurusugawa-computer/3.13
Python 3.13に対応する
- Loading branch information
Showing
4 changed files
with
567 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Python tests and lint | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip "poetry<1.9" | ||
poetry install --only main,test | ||
- name: Set timezone | ||
run: | | ||
export TZ=Asia/Tokyo | ||
sudo ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime | ||
echo "Asia/Tokyo" > sudo tee /etc/timezone > /dev/null | ||
- name: Test | ||
run: | | ||
poetry run pytest tests/test_local_*.py | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip "poetry<1.9" | ||
poetry install --only main,linter | ||
- name: Lint | ||
run: | | ||
make lint | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ Annowork WebAPIのPython用クライントライブラリです。 | |
|
||
|
||
# Requirements | ||
* Python 3.8+ | ||
* Python 3.9+ | ||
|
||
# Install | ||
|
||
|
Oops, something went wrong.