2023-03-26 04:57:18 +09:00
|
|
|
name: Test
|
|
|
|
|
2023-04-08 03:32:34 +09:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
pull_request:
|
2023-03-26 04:57:18 +09:00
|
|
|
|
|
|
|
jobs:
|
2023-03-26 05:04:20 +09:00
|
|
|
test:
|
2023-03-26 04:57:18 +09:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version: [ "3.10", "3.11" ]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install Poetry
|
|
|
|
uses: abatilo/actions-poetry@v2.1.6
|
2023-03-26 05:04:20 +09:00
|
|
|
with:
|
|
|
|
poetry-version: 1.4.1
|
2023-03-26 04:57:18 +09:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
poetry install --no-interaction
|
|
|
|
- name: Run pytest
|
|
|
|
run: |
|
|
|
|
poetry run pytest --cov isdn
|