Skip to content

Deploy @blackroad-agents - unlimited AI help #8

Deploy @blackroad-agents - unlimited AI help

Deploy @blackroad-agents - unlimited AI help #8

Workflow file for this run

name: CI/CD
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install -r requirements.txt || echo "No requirements.txt"
- name: Run tests
run: |
pytest || echo "No tests configured"
deploy:
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Deploy to Railway
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
run: |
npm install -g @railway/cli
railway up || echo "Railway deployment skipped"