Skip to content

Commit

Permalink
update ci to include python 3.12 in tests (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
silentworks authored Mar 25, 2024
2 parents 3914bb6 + 9bd18d1 commit cacb4b6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
name: CI/CD

on: [pull_request, push, workflow_dispatch]
on:
push:
paths-ignore:
- '.github/**'
- '.devcontainer/**'
- 'CHANGELOG.md'
- 'MAINTAINERS.md'
branches:
- main
pull_request:
workflow_dispatch:

jobs:
test:
name: Test / OS ${{ matrix.os }} / Python ${{ matrix.python-version }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8, 3.9, "3.10", "3.11"]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- name: Clone Repository
Expand All @@ -31,7 +41,7 @@ jobs:
make tests_only
publish:
needs: test
if: ${{ !startsWith(github.event.head_commit.message, 'bump') && !startsWith(github.event.head_commit.message, 'chore') && github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository_owner == 'supabase-community' }}
if: ${{ !startsWith(github.event.head_commit.message, 'bump') && !startsWith(github.event.head_commit.message, 'chore') && github.ref == 'refs/heads/main' && contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) && github.repository_owner == 'supabase-community' }}
runs-on: ubuntu-latest
name: "Bump version, create changelog and publish"
environment:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
]

- repo: https://github.com/myint/autoflake.git
rev: v1.4
rev: v2.2.1
hooks:
- id: autoflake
args:
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[tool.poetry]
name = "gotrue"
version = "2.4.1"
description = "Python Client Library for GoTrue"
description = "Python Client Library for Supabase Auth"
authors = ["Joel Lee <joel@joellee.org>"]
homepage = "https://github.com/supabase-community/gotrue-py"
repository = "https://github.com/supabase-community/gotrue-py"
documentation = "https://github.com/supabase-community/gotrue-py"
homepage = "https://github.com/supabase-community/auth-py"
repository = "https://github.com/supabase-community/auth-py"
documentation = "https://github.com/supabase-community/auth-py"
readme = "README.md"
license = "MIT"
classifiers = [
Expand Down

0 comments on commit cacb4b6

Please sign in to comment.