Fix CI/CD issues - add caching and target correct directories
This commit is contained in:
@@ -24,6 +24,12 @@ jobs:
|
|||||||
virtualenvs-in-project: true
|
virtualenvs-in-project: true
|
||||||
installer-parallel: 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
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
poetry install --with dev
|
poetry install --with dev
|
||||||
@@ -34,7 +40,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run linting
|
- name: Run linting
|
||||||
run: |
|
run: |
|
||||||
poetry run ruff check .
|
poetry run ruff check codechunk tests
|
||||||
|
|
||||||
- name: Run type checking
|
- name: Run type checking
|
||||||
run: |
|
run: |
|
||||||
@@ -58,6 +64,12 @@ jobs:
|
|||||||
virtualenvs-in-project: true
|
virtualenvs-in-project: true
|
||||||
installer-parallel: 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
|
- name: Build package
|
||||||
run: |
|
run: |
|
||||||
poetry build
|
poetry build
|
||||||
|
|||||||
Reference in New Issue
Block a user