From 0ac0997ced9974c35cc94228cb73f762669bbc78 Mon Sep 17 00:00:00 2001 From: Emanuele Palazzetti Date: Fri, 1 Sep 2023 16:43:07 +0000 Subject: [PATCH] tools: add GitHub action -> testing --- .github/workflows/testing.yaml | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/testing.yaml diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml new file mode 100644 index 0000000..94c95ef --- /dev/null +++ b/.github/workflows/testing.yaml @@ -0,0 +1,38 @@ +name: 'Testing' + +on: + workflow_dispatch: + push: + branches: + - main + pull_request: + +permissions: + contents: read + +concurrency: + group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' + cancel-in-progress: true + +jobs: + econnect: + runs-on: ubuntu-20.04 + env: + TOX_SKIP_ENV: lint + + steps: + - name: Check out repository code + uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + + - name: Upgrade pip and install required tools + run: | + pip install --upgrade pip + pip install tox + + - name: Test with tox environments + run: tox