Skip to content

Commit

Permalink
Add GitHub actions support to tox
Browse files Browse the repository at this point in the history
  • Loading branch information
butkeraites-hotglue committed Nov 11, 2024
1 parent 10005a0 commit 201821f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 201821f

Please sign in to comment.