ci: setup

master
Simon de Vlieger 1 month ago
parent aaa57a2be1
commit b009480f97
Signed by: supakeen
GPG Key ID: D6C290547A1167B2

@ -0,0 +1,26 @@
name: Check
on: [pull_request, push]
jobs:
lint_suite:
name: "Lint"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.11']
steps:
- name: "Clone Repository"
uses: actions/checkout@v3
- name: "Setup Python"
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- name: "Install Dependencies"
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: "Tox"
run: |
tox -e lint

@ -0,0 +1,26 @@
name: Test
on: [pull_request, push]
jobs:
test_suite:
name: "Test"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11']
steps:
- name: "Clone Repository"
uses: actions/checkout@v3
- name: "Setup Python"
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- name: "Install Dependencies"
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: "Tox"
run: |
tox

@ -1,11 +1,11 @@
[tox]
env_list =
py{39,310,311,312}
py{39,310,311}
lint
type
labels =
test = py{39,310,311,312}
test = py{39,310,311}
lint = ruff
type = mypy
@ -37,3 +37,9 @@ deps =
commands =
bash -c 'python -m mypy {env:LINTABLES}'
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311

Loading…
Cancel
Save