TeamspeakStats/.github/workflows/test.yml

43 lines
989 B
YAML
Raw Normal View History

2023-01-14 06:33:29 -05:00
name: test
on:
push: {}
pull_request: {}
2023-01-14 12:30:13 -05:00
workflow_call: {}
2023-01-14 06:33:29 -05:00
jobs:
lint:
2023-01-14 06:35:40 -05:00
runs-on: ubuntu-22.04
2023-01-14 06:33:29 -05:00
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
2023-01-14 06:35:40 -05:00
python-version: '3.10'
2023-01-14 06:33:29 -05:00
- name: Setup poetry
uses: abatilo/actions-poetry@v2
with:
2023-01-14 06:35:40 -05:00
poetry-version: '1.3'
2023-01-14 06:33:29 -05:00
- name: Install dependencies
run: poetry install
- name: Lint
2023-01-14 06:43:38 -05:00
run: poetry run poe lint
2023-01-14 06:33:29 -05:00
test:
strategy:
fail-fast: false
matrix:
2023-01-14 06:35:40 -05:00
python-version: ["3.7", "3.8", "3.9", "3.10"]
runs-on: ubuntu-22.04
2023-01-14 06:33:29 -05:00
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup poetry
uses: abatilo/actions-poetry@v2
with:
2023-01-14 06:35:40 -05:00
poetry-version: '1.3'
2023-01-14 06:33:29 -05:00
- name: Install dependencies
run: poetry install
- name: Run tests
2023-01-14 06:43:38 -05:00
run: poetry run poe test