spotframework/.github/workflows/ci.yml

30 lines
754 B
YAML
Raw Permalink Normal View History

2021-02-06 00:38:16 +00:00
name: Tests
2021-02-07 15:27:31 +00:00
on: [push, pull_request]
2021-02-06 00:33:49 +00:00
jobs:
build:
strategy:
fail-fast: false
matrix:
2022-12-20 18:02:48 +00:00
python-version: ['3.10']
poetry-version: [1.3.1]
os: [ubuntu-latest]
2021-02-06 00:33:49 +00:00
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3 # get source
2021-02-07 15:27:31 +00:00
2021-02-06 00:33:49 +00:00
- name: Install Python 3
uses: actions/setup-python@v4
2021-02-06 00:33:49 +00:00
with:
python-version: ${{ matrix.python-version }}
2021-02-07 15:27:31 +00:00
- name: Install Poetry # dependency management
uses: abatilo/actions-poetry@v2.1.6
2021-02-06 00:33:49 +00:00
with:
poetry-version: ${{ matrix.poetry-version }}
2021-02-07 15:27:31 +00:00
- name: Install Dependencies
run: poetry install
2021-03-20 17:59:33 +00:00
- name: Run Tests # test script
2021-02-07 15:27:31 +00:00
run: poetry run python -m unittest discover -s tests