mirror of
https://github.com/j93es/oauth-backend.git
synced 2026-06-05 02:01:28 +09:00
commit
5b2dec4db8
1 changed files with 43 additions and 0 deletions
43
.github/workflows/ci.yml
vendored
Normal file
43
.github/workflows/ci.yml
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
name: CI/CD Pipeline
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version: [3.13]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install uv
|
||||||
|
uses: astral-sh/setup-uv@v4
|
||||||
|
with:
|
||||||
|
enable-cache: true
|
||||||
|
cache-dependency-glob: "uv.lock"
|
||||||
|
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
run: uv python install ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: uv sync
|
||||||
|
|
||||||
|
- name: Start application and run proxy test
|
||||||
|
run: |
|
||||||
|
# Start the application in background
|
||||||
|
uv run main.py &
|
||||||
|
APP_PID=$!
|
||||||
|
|
||||||
|
# Wait for application to start
|
||||||
|
sleep 5
|
||||||
|
|
||||||
|
# Test proxy functionality
|
||||||
|
curl -x http://localhost:11080 http://example.com
|
||||||
|
|
||||||
|
# Clean up
|
||||||
|
kill $APP_PID
|
||||||
Loading…
Add table
Add a link
Reference in a new issue