ci(actions): add github actions

This commit is contained in:
Kristofers Solo 2024-09-12 14:07:57 +03:00
parent 6f41a6cf9d
commit c62b284c56
3 changed files with 29 additions and 3 deletions

26
.github/workflows/tox.yaml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Run Tox
on:
pull_request:
branches: [main]
jobs:
test:
name: Test with ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Run Tox
env:
TOXENV: py${{ matrix.python-version }}
run: tox

View File

@ -1,10 +1,10 @@
[project]
name = "bunyan-formatter"
version = "0.1.0"
version = "1.0.0"
description = "Bunyan Formatter for Python"
dependencies = []
readme = "README.md"
requires-python = ">=3.12"
requires-python = ">=3.9"
authors = [{ name = "Kristofers Solo", email = "dev@kristofers.xyz" }]
[build-system]

View File

@ -1,5 +1,5 @@
[tox]
envlist = py312, format, lint, type, test
envlist = py39, py310, py311, py312, format, lint, type, test
skipsdist = True
[testenv]