Skip to content

Commit

Permalink
add tox.ini and github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NodeJSmith committed Jun 12, 2024
1 parent 70e9df5 commit c11da57
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/python_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Python package

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.10, 3.11]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tests
run: tox
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[tox]
envlist = py310, py311

[testenv]
deps =
pytest
commands =
pytest

0 comments on commit c11da57

Please sign in to comment.