From d4f3086e4389298c59b8784d21fbcb9c6e313431 Mon Sep 17 00:00:00 2001 From: Kirill Pinchuk Date: Mon, 5 Feb 2024 17:09:20 +0300 Subject: [PATCH] ci: add github actions --- .github/workflows/test.yml | 22 ++++++++++++++++++++++ tox.ini | 4 +++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..14662e8 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,22 @@ +name: tests + +on: + push: + branches: + - '*' + +jobs: + run-tests: + runs-on: ubuntu-20.04 + timeout-minutes: 5 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: | + 3.11 + 3.8 + 3.7 + 3.6 + - run: pip3 install tox hatch + - run: tox diff --git a/tox.ini b/tox.ini index 0adfa82..a9999d8 100644 --- a/tox.ini +++ b/tox.ini @@ -1,9 +1,10 @@ [tox] +isolated_build = True envlist = py36, py37, py38, - py38-custom + py311, [testenv] setenv = @@ -14,6 +15,7 @@ deps = pytest pytest-cov ipdb + requests .[log_requests] commands =