Fix CI/CD issues - add caching and target correct directories
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user