diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c5f60f6..3e23c66 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -24,6 +24,12 @@ jobs: virtualenvs-in-project: true installer-parallel: true + - name: Cache Poetry installation + uses: actions/cache@v4 + with: + path: ~/.local + key: poetry-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} + - name: Install dependencies run: | poetry install --with dev @@ -34,7 +40,7 @@ jobs: - name: Run linting run: | - poetry run ruff check . + poetry run ruff check codechunk tests - name: Run type checking run: | @@ -58,6 +64,12 @@ jobs: virtualenvs-in-project: true installer-parallel: true + - name: Cache Poetry installation + uses: actions/cache@v4 + with: + path: ~/.local + key: poetry-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} + - name: Build package run: | poetry build