Use pyproject.toml to determing python version to use for test #231
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
| 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
|
||
| 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 | ||