Change v0.4.2 to v0.5.0 #26
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: CI | |
on: | |
push: | |
branches: [main, develop] | |
paths: ["src/**", "tests/**", ".github/workflows/ci.yml"] | |
pull_request: | |
branches: [main, develop] | |
paths: ["src/**", "tests/**", ".github/workflows/ci.yml"] | |
workflow_dispatch: | |
jobs: | |
CI: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Rye | |
run: | | |
curl -sSf https://rye.astral.sh/get | RYE_INSTALL_OPTION="--yes" bash | |
echo "$HOME/.rye/shims" >> $GITHUB_PATH | |
- name: Setup Python ${{matrix.python-version}} & Dependencies | |
run: | | |
rye pin ${{ matrix.python-version }} | |
rye sync --update-all --all-features | |
- name: Run ruff lint check | |
run: rye run ruff check --diff | |
- name: Run ruff format check | |
run: rye run ruff format --check --diff | |
- name: Run pytest | |
run: rye run pytest |