From 7f0c45cf06b3105530dbb203cf45e66a4da39a1a Mon Sep 17 00:00:00 2001 From: momo Date: Thu, 3 Apr 2025 17:57:05 -0700 Subject: [PATCH] Add GitHub actions runner --- .github/workflows/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9e91e9a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,31 @@ +name: Python Tests +# Triggers on pushes/pull requests to 'master'. +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + name: Test Python ${{ matrix.python-version }} + runs-on: ubuntu-latest + strategy: + fail-fast: false # Ensure all versions test even if one fails + matrix: + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] + + steps: + - name: Checkout code + 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 tox + + - name: Run tests via tox + run: tox \ No newline at end of file