From f3fe47aae0fdf046df5f3071113781a129f97800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1ty=C3=A1s=20Kuti?= Date: Sun, 15 Oct 2023 19:48:37 +0200 Subject: [PATCH] Create GitHub actions CI definition --- .github/workflows/python-app.yml | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/python-app.yml diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml new file mode 100644 index 0000000..e9552e6 --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,35 @@ +name: Python application +on: + - push +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: + - "3.10" + - "3.11" + - "3.12" + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Pre-install dependencies + run: | + make install_lint_requirements + make install_test_requirements + - name: Lint + run: | + make lint + - name: Test + run: | + make test