From 10db48143352e0b3d39d16b3256ae7f0066a157a Mon Sep 17 00:00:00 2001 From: nisaji Date: Sat, 28 Dec 2024 14:08:59 +0900 Subject: [PATCH] fix: ci --- .github/workflows/ci.yml | 38 ++++++++++++-------------------------- 1 file changed, 12 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b9bf9ee..769f1b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,35 +28,21 @@ jobs: virtualenvs-create: true virtualenvs-in-project: true - - name: Load cached venv - id: cached-poetry-dependencies - uses: actions/cache@v3 - with: - path: .venv - key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} + - name: Debug pyproject.toml + run: | + echo "Current directory:" + pwd + echo "Directory contents:" + ls -la + echo "pyproject.toml contents:" + cat pyproject.toml - name: Install dependencies - if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' - run: poetry install --no-interaction --no-root - - - name: Install project - run: poetry install --no-interaction + run: | + python -m pip install --upgrade pip + poetry install - name: Run tests env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - run: poetry run test - - # - name: Upload coverage reports to Codecov - # uses: codecov/codecov-action@v3 - # env: - # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - - # security: - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v3 - # - name: Run Snyk to check for vulnerabilities - # uses: snyk/actions/python@master - # env: - # SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} + run: poetry run pytest