feat: add parser source dashboard and scheduling
Some checks failed
CI/CD Pipeline / Run Tests (pull_request) Waiting to run
CI/CD Pipeline / Code Quality Checks (pull_request) Failing after 1m20s
CI/CD Pipeline / Build Docker Images (pull_request) Has been cancelled
CI/CD Pipeline / Push to Gitea Registry (pull_request) Has been cancelled
Some checks failed
CI/CD Pipeline / Run Tests (pull_request) Waiting to run
CI/CD Pipeline / Code Quality Checks (pull_request) Failing after 1m20s
CI/CD Pipeline / Build Docker Images (pull_request) Has been cancelled
CI/CD Pipeline / Push to Gitea Registry (pull_request) Has been cancelled
This commit is contained in:
@@ -2,14 +2,15 @@ name: CI/CD Pipeline
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, develop ]
|
||||
branches: [ main, dev ]
|
||||
pull_request:
|
||||
branches: [ main, develop ]
|
||||
branches: [ main, dev ]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Code Quality Checks
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -21,9 +22,7 @@ jobs:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install uv
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||
run: python -m pip install --upgrade pip uv
|
||||
|
||||
- name: Create virtual environment
|
||||
run: uv venv
|
||||
@@ -46,6 +45,7 @@ jobs:
|
||||
test:
|
||||
name: Run Tests
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:15.10
|
||||
@@ -81,9 +81,7 @@ jobs:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install uv
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||
run: python -m pip install --upgrade pip uv
|
||||
|
||||
- name: Create virtual environment
|
||||
run: uv venv
|
||||
@@ -113,7 +111,7 @@ jobs:
|
||||
cd src
|
||||
python manage.py test --verbosity=2
|
||||
env:
|
||||
DJANGO_SETTINGS_MODULE: config.settings.development
|
||||
DJANGO_SETTINGS_MODULE: config.settings.test
|
||||
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test_db
|
||||
REDIS_URL: redis://localhost:6379/0
|
||||
CELERY_BROKER_URL: redis://localhost:6379/0
|
||||
@@ -122,6 +120,7 @@ jobs:
|
||||
build:
|
||||
name: Build Docker Images
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
needs: [lint, test]
|
||||
|
||||
steps:
|
||||
@@ -181,7 +180,7 @@ jobs:
|
||||
name: Push to Gitea Registry
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build]
|
||||
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'
|
||||
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev'
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
||||
Reference in New Issue
Block a user