From 80e911f1dfdc6d2277926a37df10b23ae19eab50 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Sat, 3 Feb 2024 21:53:23 +0200 Subject: [PATCH] gha: add basic CI --- .github/workflows/tests.yaml | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..90c5ae4 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,44 @@ +name: Tests + +on: + push: + branches: [master] + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + tests: + timeout-minutes: 45 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + pyv: ["3.9", "3.10", "3.11", "3.12"] + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.pyv }} + cache: 'pip' + + - name: install + run: | + pip install --upgrade pip wheel + pip install -e . + + - name: run tests + timeout-minutes: 15 + run: pytest -v