From 9c14bf63e26ee4191aea76008cfc8fd03e5ef783 Mon Sep 17 00:00:00 2001 From: Guilherme Branco Stracini Date: Fri, 7 Mar 2025 11:21:08 +0000 Subject: [PATCH 1/3] Update ci.yml +semver; minor --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b9aa5ce..a5577a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,34 @@ jobs: with: useConfigFile: true + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Cache pip dependencies + uses: actions/cache@v3 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} + restore-keys: | + ${{ runner.os }}-pip- + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Run linting + run: | + pip install flake8 + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + + - name: Run tests + run: | + pip install pytest + pytest test_api.py + create_release: name: Create release needs: [build-tests] From 18cc51de14fa5ec5df5719cfb5ff126f578b1de4 Mon Sep 17 00:00:00 2001 From: Guilherme Branco Stracini Date: Fri, 7 Mar 2025 11:22:06 +0000 Subject: [PATCH 2/3] Update ci.yml +semver: minor --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5577a5..7e97162 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,7 +54,7 @@ jobs: run: | pip install flake8 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - + - name: Run tests run: | pip install pytest From 0fe0200c36d6ae07677347648d2955a0103dc7a2 Mon Sep 17 00:00:00 2001 From: Guilherme Branco Stracini Date: Fri, 7 Mar 2025 11:26:55 +0000 Subject: [PATCH 3/3] Update .github/workflows/ci.yml Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e97162..1bb9241 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,8 +35,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.11" - + python-version: "3.11" - name: Cache pip dependencies uses: actions/cache@v3 with: