From 1222900157502624f3c9774c81bac1e096ea88b0 Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Wed, 27 Oct 2021 18:02:39 +0200 Subject: chore: add github actions (#42) * Add github actions Fixes: #39 * Fix workflow --- .github/workflows/run-test.yaml | 72 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 .github/workflows/run-test.yaml (limited to '.github/workflows/run-test.yaml') diff --git a/.github/workflows/run-test.yaml b/.github/workflows/run-test.yaml new file mode 100644 index 0000000..7328325 --- /dev/null +++ b/.github/workflows/run-test.yaml @@ -0,0 +1,72 @@ +name: Run tests + +on: + push: + pull_request: + + +jobs: + run-test: + name: test-${{ matrix.python-version }} + runs-on: "ubuntu-latest" + strategy: + matrix: + python-version: + - "3.6" + - "3.7" + - "3.8" + - "3.9" + - "3.10" + - "pypy-3.7" + + fail-fast: false + + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Set up python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + architecture: ${{ matrix.architecture }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install --upgrade tox setuptools + pip list + + - name: Run tests + run: | + tox + + run-lint: + name: lint + runs-on: "ubuntu-latest" + strategy: + matrix: + python-version: + - "3.10" + + fail-fast: false + + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Set up python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + architecture: ${{ matrix.architecture }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install --upgrade tox setuptools + pip list + + - name: Run lint + run: | + tox -e flake8 -- cgit v1.2.1