Update README concerning new account delete feature #10
This file contains hidden or 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: CI/CD | |
| on: | |
| push: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:17-alpine | |
| env: | |
| POSTGRES_USER: ${{ secrets.TEST_DB_USER }} | |
| POSTGRES_PASSWORD: ${{ secrets.TEST_DB_PASSWORD }} | |
| POSTGRES_DB: ${{ secrets.TEST_DB_NAME }} | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| env: | |
| DB_HOST: localhost | |
| DB_USER: ${{ secrets.TEST_DB_USER }} | |
| DB_PASSWORD: ${{ secrets.TEST_DB_PASSWORD }} | |
| DB_NAME: ${{ secrets.TEST_DB_NAME }} | |
| SECRET_KEY: ${{ secrets.TEST_SECRET_KEY }} | |
| APP_ENV: development | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - run: pip install -r requirements.txt | |
| - run: pytest tests/ -v | |
| deploy: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Deploy to Railway | |
| run: npx @railway/cli@latest up --detach --service ${{ secrets.RAILWAY_SERVICE_ID }} | |
| env: | |
| RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} |