Spaces:
Running
Running
| name: Build and Test (certif) | |
| on: | |
| push: | |
| branches: | |
| - certif | |
| pull_request: | |
| branches: | |
| - certif | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Build Docker image | |
| run: docker build --build-arg TEST=true -t test_image . | |
| - name: Run tests inside container | |
| run: docker run --rm --env-file .env.test test_image pytest | |