Changelog placeholders #938
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
name: test | |
on: | |
push: {} | |
pull_request: {} | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.11", "3.12", "3.13"] | |
env: | |
PACKAGES: plain plain-worker plain-flags plain-sessions plain-admin plain-oauth plain-models plain-api plain-elements plain-htmx | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v2 | |
- name: Set up Python | |
run: uv python install ${{ matrix.python-version }} | |
- name: Run tests | |
run: | | |
for package in $PACKAGES; do | |
echo "Testing $package" | |
(cd "$package/tests" && uv run --isolated pytest) | |
done | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v2 | |
- name: Set up Python | |
run: uv python install | |
- working-directory: plain-code | |
run: uv sync | |
- working-directory: plain-code | |
run: uv run --package plain-code --isolated plain-code check . |