sanitize urls when verifying tokens #7
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: FastAPI JWT Auth Build Test | |
on: | |
push: | |
paths: | |
- "src/fastapi_jwt_auth3/**" | |
- "tests/**" | |
- ".github/workflows/buildtestworkflow.yaml" | |
jobs: | |
build: | |
name: Test FastAPI JWT Auth | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
defaults: | |
run: | |
working-directory: ./ | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
timeout-minutes: 20 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Python 3.12 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: "x64" | |
- name: Install Rye | |
run: | | |
wget https://github.com/astral-sh/rye/releases/latest/download/rye-x86_64-linux.gz | |
gunzip rye-x86_64-linux.gz | |
chmod +x rye-x86_64-linux | |
sudo mv rye-x86_64-linux /usr/local/bin/rye | |
- name: Build | |
run: rye sync | |
- name: Run Tests | |
run: | | |
source .venv/bin/activate | |
rye run test | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4.0.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |