Skip to content

feat: explicitly set the shell for just setup action and related #37

feat: explicitly set the shell for just setup action and related

feat: explicitly set the shell for just setup action and related #37

Workflow file for this run

name: Lint, Test
on:
push:
pull_request:
branches: [main]
concurrency:
# New commit on branch cancels running workflows of the same branch
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
PYTHON_VERSION: "3.10"
POETRY_VERSION: "1.6.1"
jobs:
lint-and-test:
runs-on: ubuntu-latest
defaults:
run:
shell: pwsh
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv if cache exists
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies if cache does not exist
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: Install project
run: poetry install --no-interaction
- name: Setup just
uses: taiki-e/install-action@just
with:
shell: pwsh
- name: Enforce code style (Ruff)
run: just ruff-show-violations
with:

Check failure on line 61 in .github/workflows/actions.yaml

View workflow run for this annotation

GitHub Actions / Lint, Test

Invalid workflow file

The workflow is not valid. .github/workflows/actions.yaml (Line: 61, Col: 9): Unexpected value 'with' .github/workflows/actions.yaml (Line: 66, Col: 9): Unexpected value 'with'
shell: pwsh
- name: Verify code formatting (Black)
run: just black-check
with:
shell: pwsh
- name: Run tests
run: just test
with:
shell: pwsh
- name: Generate test coverage report
run: just test-and-report-cov
with:
shell: pwsh
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true