From 46298024359ae669e928836cd6bb28ac8c924572 Mon Sep 17 00:00:00 2001 From: Attila Domokos Date: Wed, 23 Sep 2020 10:34:03 -0500 Subject: [PATCH] Add GitHub workflows --- .github/workflows/python-build.yml | 33 ++++++++++++++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/python-build.yml diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml new file mode 100644 index 0000000..06c4a7b --- /dev/null +++ b/.github/workflows/python-build.yml @@ -0,0 +1,33 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Python Build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.6, 3.7, 3.8] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install poetry + poetry install + - name: Run specs + run: | + make spec diff --git a/pyproject.toml b/pyproject.toml index 87c5d8a..a1a2b98 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ description = "A light-service like project in Python" authors = ["Attila Domokos "] [tool.poetry.dependencies] -python = "^3.7" +python = "^3.6" [tool.poetry.dev-dependencies] mamba = "^0.11.1"