mirror of
https://github.com/kristoferssolo/bunyan-formatter.git
synced 2026-02-04 06:22:05 +00:00
ci(actions): add github actions
This commit is contained in:
26
.github/workflows/tox.yaml
vendored
Normal file
26
.github/workflows/tox.yaml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user