Skip to content

Commit

Permalink
Merge pull request #11 from zenproducts/feature/ci-tests
Browse files Browse the repository at this point in the history
CI でのテスト実行
  • Loading branch information
hirokiky authored Nov 15, 2024
2 parents 993ef6f + ca9beec commit 5576c42
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Tests

on:
push:
branches:
- main
paths:
- .github/workflows/tests.yml
- shodo/**
- tests/**
pull_request:
paths:
- .github/workflows/tests.yml
- shodo/**
- tests/**

jobs:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']

name: Python ${{ matrix.python-version }} tests

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: setup.py

- name: Install dependencies
run: |
python -m pip install -U pip
pip install -e ".[dev]"
- name: Run tests
run: pytest tests/
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
setup(
name="shodo",
version="1.0.1",
packages=find_packages(),
packages=find_packages(exclude=["tests"]),
url="https://github.com/zenproducts/shodo-python",
license="MIT",
author="ZenProducts Inc.",
Expand Down Expand Up @@ -46,4 +46,5 @@
"py.typed",
],
},
python_requires=">=3.8",
)

0 comments on commit 5576c42

Please sign in to comment.