Skip to content

Use pyproject.toml to determing python version to use for test #231

Use pyproject.toml to determing python version to use for test

Use pyproject.toml to determing python version to use for test #231

Workflow file for this run

on:
push:
branches:
- main
pull_request:
merge_group:
name: CI
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up PDM
uses: pdm-project/setup-pdm@v4
with:

Check failure on line 20 in .github/workflows/main.yaml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yaml (Line: 20, Col: 14): Unexpected value '' .github/workflows/main.yaml (Line: 21, Col: 9): Unexpected value 'python-version-file'
python-version-file: pyproject.toml
- name: Install dependencies
run: |
pdm install
- name: Run tests
run: |
pdm run test
- name: Run lints
run: |
pdm run lint
- name: Run doc tests
run: pdm run test-docs
license:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check source code licenses
run: |
docker run --platform=linux/amd64 -v ${PWD}:/src ghcr.io/google/addlicense -v -check -l BSD-2-Clause -c "ChipFlow" -s=only -ignore **/__init__.py **/*.py