Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: test

on:
push:
branches: [master]
pull_request:

jobs:
# Full test suite. asynctest does not work on Python 3.11+
# (asyncio.coroutine was removed), so tests run on 3.8-3.10 only.
test:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install package and test dependencies
run: |
pip install .
pip install asynctest pytest pytest-mock pyyaml jsonschema
- name: Run tests
run: pytest -vv

# Import smoke test on newer Pythons where the test suite cannot run.
import-check:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install package
run: pip install .
- name: Import check
working-directory: ${{ runner.temp }}
run: python -c "from obniz import Obniz; print('import OK')"
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README-ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[obniz](https://obniz.io/)をpythonから操作するためのsdkです。
[obnizBoard](https://obniz.io/ja/doc/obniz_board_hobby_90/hw_overview)と[obnizOS](https://obniz.io/ja/doc/obnizos/os_overview)に対応しています

**Python 3.6以上**で動作します。
**Python 3.8以上**で動作します。

<img src="https://object-storage.tyo1.conoha.io/v1/nc_35a49f4e51c74e35ad3493c52d37f63e/images/obniz-python-readme.gif" width="100%" />

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Control obniz from python.

This sdk works with [obniz api](https://obniz.io/doc/about_obniz_api).

Compatible with **Python 3.6+**.
Compatible with **Python 3.8+**.

<img src="https://object-storage.tyo1.conoha.io/v1/nc_35a49f4e51c74e35ad3493c52d37f63e/images/obniz-python-readme.gif" width="100%" />

Expand Down
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

# Note: the test suite depends on asynctest, which does not work on
# Python 3.11+ (asyncio.coroutine was removed). Runtime supports 3.8+,
# but tests can only run on 3.8-3.10 until asynctest is replaced.
[tox]
envlist = py36, py37
envlist = py38, py39, py310

[testenv]
deps =
Expand Down
Loading