From ed67242c4e20872839ca17ee7e5e681e32e9b754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Libor=20Jel=C3=ADnek?= Date: Fri, 3 Nov 2023 17:32:02 +0100 Subject: [PATCH] chore: test with github actions --- .github/workflows/tests.yml | 30 ++++++++++++++++++++++++++++++ test-requirements.txt | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..830152f --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,30 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Tests + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: "3.11" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install tox==4.11.3 + - name: Test + run: | + tox diff --git a/test-requirements.txt b/test-requirements.txt index 6596764..48631c4 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1 +1 @@ -sphinx==5.0.1 \ No newline at end of file +sphinx==5.3.0 \ No newline at end of file