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: Docker-based Python Tests | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Builid image | |
| run: docker build -f Dockerfile_ci -t ai-summary . | |
| - name: Run container | |
| run: docker run -d -p 8501:8501 --name ai-summary ai-summary | |
| - name: Testing ... | |
| run: docker exec ai-summary bash -c "cd app && pytest" |