From c11da575e26472a4c8922fb6e0b5f9045cfd6e73 Mon Sep 17 00:00:00 2001 From: Jessica Smith <12jessicasmith34@gmail.com> Date: Wed, 12 Jun 2024 13:25:25 -0500 Subject: [PATCH] add tox.ini and github workflow --- .github/workflows/python_package.yml | 28 ++++++++++++++++++++++++++++ tox.ini | 8 ++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/python_package.yml create mode 100644 tox.ini diff --git a/.github/workflows/python_package.yml b/.github/workflows/python_package.yml new file mode 100644 index 0000000..146a75b --- /dev/null +++ b/.github/workflows/python_package.yml @@ -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 diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..223985a --- /dev/null +++ b/tox.ini @@ -0,0 +1,8 @@ +[tox] +envlist = py310, py311 + +[testenv] +deps = + pytest +commands = + pytest