Executing automated changes #11
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test | ||
| on: | ||
| push: | ||
| branches: ["dev"] | ||
| pull_request: | ||
| branches: ["dev"] | ||
| permissions: | ||
| contents: ["read"] | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - uses: actions/setup-python@v3 | ||
| with: | ||
| python-version: "3.12" | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install poetry | ||
| poetry install --with dev | ||
| - name: Configure poetry | ||
| run: | | ||
| python -m poetry config virtualenvs.in-project true | ||
| - name: Cache virtualenv | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: ./.venv | ||
| key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }} | ||
| - name: Run tests | ||
| run: poetry run python -m pytest -sxv' | ||
| - name: Lint | ||
| uses: chartboost/ruff-action@v1 | ||
| with: | ||
| changed-files: 'true' | ||