diff --git a/.github/workflows/ci.yml b/.github/workflows/lint.yml similarity index 98% rename from .github/workflows/ci.yml rename to .github/workflows/lint.yml index 99dd2c0..99b278d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/lint.yml @@ -1,4 +1,4 @@ -name: ci +name: lint on: push: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..d60e37c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +name: test + +on: + push: + branches: + - master + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + name: test ${{ matrix.python-version }} + strategy: + matrix: + python-version: [ '3.10', '3.11', '3.12', '3.13', '3.14' ] + fail-fast: false + steps: + - uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v6 + + - name: Set up Python ${{ matrix.python-version }} + run: uv python install ${{ matrix.python-version }} + + - name: Install dependencies + run: | + uv sync + + - name: Run test + run: uv run pytest diff --git a/fastapi_oauth20/__init__.py b/fastapi_oauth20/__init__.py index ac99843..d0c5d9a 100644 --- a/fastapi_oauth20/__init__.py +++ b/fastapi_oauth20/__init__.py @@ -9,4 +9,4 @@ from .clients.linuxdo import LinuxDoOAuth20 as LinuxDoOAuth20 from .clients.oschina import OSChinaOAuth20 as OSChinaOAuth20 -__version__ = '0.0.1' +__version__ = '0.0.2'