2022-10-24 21:51:15 +00:00
|
|
|
name: test
|
|
|
|
|
2022-12-04 00:42:59 +00:00
|
|
|
on:
|
|
|
|
push:
|
2022-12-07 06:28:50 +00:00
|
|
|
branches: [master]
|
2022-12-04 00:42:59 +00:00
|
|
|
pull_request:
|
|
|
|
|
|
|
|
env:
|
2022-12-13 13:48:53 +00:00
|
|
|
POETRY_VERSION: "1.3.1"
|
2022-10-24 21:51:15 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-12-04 00:42:59 +00:00
|
|
|
python-version:
|
2022-12-13 13:48:53 +00:00
|
|
|
- "3.8"
|
|
|
|
- "3.9"
|
|
|
|
- "3.10"
|
|
|
|
- "3.11"
|
2022-10-24 21:51:15 +00:00
|
|
|
steps:
|
2022-12-13 13:48:53 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install poetry
|
|
|
|
run: pipx install poetry==$POETRY_VERSION
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
cache: "poetry"
|
|
|
|
- name: Install dependencies
|
|
|
|
run: poetry install
|
|
|
|
- name: Run unit tests
|
|
|
|
run: |
|
|
|
|
make tests
|