Release plain-oauth 0.25.1 #1115
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: | |
pull_request: {} | |
push: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:16 | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: plain | |
ports: | |
- 5432:5432 | |
options: >- | |
--health-cmd="pg_isready -U postgres" | |
--health-interval=10s | |
--health-timeout=5s | |
--health-retries=5 | |
mysql: | |
image: mysql:8 | |
env: | |
MYSQL_ROOT_PASSWORD: mysql | |
MYSQL_DATABASE: plain | |
ports: | |
- 3306:3306 | |
options: >- | |
--health-cmd="mysqladmin ping -h localhost -u root --password=mysql" | |
--health-interval=10s | |
--health-timeout=5s | |
--health-retries=5 | |
strategy: | |
matrix: | |
python-version: ["3.11", "3.12", "3.13"] | |
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: Install system libraries for MySQL client build | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y default-libmysqlclient-dev build-essential pkg-config | |
- name: Test (SQLite) | |
run: ./scripts/test | |
env: | |
DATABASE_URL: "sqlite://:memory:" | |
- name: Test (PostgreSQL) | |
run: ./scripts/test | |
env: | |
DATABASE_URL: postgres://postgres:postgres@localhost:5432/plain | |
- name: Test (MySQL) | |
run: ./scripts/test | |
env: | |
DATABASE_URL: mysql://root:[email protected]:3306/plain | |
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 | |
- run: uv run --package plain-code --isolated plain-code check . |