From 84062fe163cddb5dc8b9135fc91d577456a9cf57 Mon Sep 17 00:00:00 2001 From: droodev Date: Mon, 11 Nov 2024 13:09:53 -0600 Subject: [PATCH] Added github actions testing the code. --- .github/workflows/python-tests.yml | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/python-tests.yml diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml new file mode 100644 index 0000000..0afc094 --- /dev/null +++ b/.github/workflows/python-tests.yml @@ -0,0 +1,40 @@ +name: Tests + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ["3.10", "3.11", "3.12", "3.13"] + os: [ubuntu-latest, macos-latest, windows-latest] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install crucial dependencies + run: | + python -m ensurepip --upgrade + python -m pip install --upgrade setuptools + python -m pip install --upgrade pip + pip install tox + - name: Test with tox + run: | + tox + # - name: Upload results to Codecov + # uses: codecov/codecov-action@v4 + # with: + # token: ${{ secrets.CODECOV_TOKEN }}