From 201821f9733f4ee23e8675e483465526e6f0deac Mon Sep 17 00:00:00 2001 From: Renan Butkeraites Date: Mon, 11 Nov 2024 17:48:29 -0300 Subject: [PATCH] Add GitHub actions support to tox --- .github/workflows/tox.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/tox.yml diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml new file mode 100644 index 0000000..35124d2 --- /dev/null +++ b/.github/workflows/tox.yml @@ -0,0 +1,29 @@ +name: Tox Test + +on: + pull_request: # This will trigger the workflow on all pull requests + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: [3.8, 3.10] # Match the Python versions in your tox envlist + + 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 poetry # Ensure poetry is installed as it's used in tox.ini + + - name: Run Tox + run: tox