Skip to content

Use inputs

Use inputs #7

Workflow file for this run

# CI/CD workflow for the project.
name: cicd
on:
push:
env:
PYTHON_VERSION: "3.11"
POETRY_VERSION: "1.8.2"
RUNS_ON: "ubuntu-22.04"
jobs:
# Check for linting errors.
lint:
uses: ./.github/workflows/python-make-target.yaml
with:
target: lint
python-version: ${{ env.PYTHON_VERSION }}

Check failure on line 17 in .github/workflows/cicd.yaml

View workflow run for this annotation

GitHub Actions / cicd

Invalid workflow file

The workflow is not valid. .github/workflows/cicd.yaml (Line: 17, Col: 23): Unrecognized named-value: 'env'. Located at position 1 within expression: env.PYTHON_VERSION .github/workflows/cicd.yaml (Line: 18, Col: 23): Unrecognized named-value: 'env'. Located at position 1 within expression: env.POETRY_VERSION
poetry-version: ${{ env.POETRY_VERSION }}
runs-on: ${{ env.RUNS_ON }}
# Run the test suite.
test:
uses: ./.github/workflows/python-make-target.yaml
with:
target: test
python-version: ${{ env.PYTHON_VERSION }}
poetry-version: ${{ env.POETRY_VERSION }}
runs-on: ${{ env.RUNS_ON }}