From 48377df755771db97efbb2811db60181e4790351 Mon Sep 17 00:00:00 2001 From: Abhinand C Date: Mon, 3 Apr 2023 00:24:09 +0530 Subject: [PATCH 1/2] feat(Actions): Adds lint checking --- .github/workflows/lint.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..eb4dd686 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,27 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Lint + +on: [push, pull_request] +permissions: + contents: read + +jobs: + build: + strategy: + matrix: + python: ["3.11"] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 + - name: Lint with flake8 + run: make lint From 31af449184d4c99c49aed6f6c8ea4989ba21cd18 Mon Sep 17 00:00:00 2001 From: Abhinand C Date: Mon, 3 Apr 2023 00:25:46 +0530 Subject: [PATCH 2/2] feat(Actions): Adds Tests, package build --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..2e72e3af --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Test Package + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python: ["3.7", "3.8", "3.9", "3.10", "3.11"] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python }} + - name: Install dependencies + run: | + python -m pip install poetry + poetry install + - name: Lint with flake8 + run: make lint + - name: Run Tests + run: make test + - name: Build Package + run: | + poetry build \ No newline at end of file