diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 36af9a6..17b7156 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -44,28 +44,6 @@ jobs: echo "TAGGED=${{ startsWith(github.ref, 'refs/tags/api') }}" >> $GITHUB_OUTPUT echo "SHORT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - lint: - runs-on: ubuntu-latest - needs: prepare - timeout-minutes: 5 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: actions/setup-python@v5 - with: - python-version: "3.12" - cache: "pip" # caching pip dependencies - check-latest: true - - - run: pip install --force-reinstall -r requirements.txt - if: ${{ steps.setup-python.outputs.cache-hit != 'true' }} - - - run: pip install -r requirements.txt - if: ${{ steps.setup-python.outputs.cache-hit == 'true' }} - - - uses: chartboost/ruff-action@v1 - deploy: runs-on: ubuntu-latest needs: [prepare, lint] diff --git a/.github/workflows/ruff.yml b/.github/workflows/lint.yml similarity index 62% rename from .github/workflows/ruff.yml rename to .github/workflows/lint.yml index b7791ba..1d07159 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/lint.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.11", "3.12"] + python-version: ["3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -15,9 +15,5 @@ jobs: with: python-version: ${{ matrix.python-version }} - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install ruff - - name: Analysing the code with ruff - run: | - ruff check ./ + run: python -m pip install --upgrade pip + - uses: chartboost/ruff-action@v1