refactor build toolchain #22
This file contains 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: Build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
os: ["ubuntu-24.04", "macos-latest"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up PDM | |
uses: pdm-project/setup-pdm@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: true | |
prerelease: true | |
- name: Ensure lock file is up to date | |
run: | | |
pdm lock --check | |
pdm lock --lockfile py12-linux.lock --check | |
- name: Install dependencies | |
run: | | |
pdm sync -d | |
- name: Run Lint | |
run: | | |
pdm run lint | |
- name: Run Tests | |
run: | | |
pdm run test |