2
0

test.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. name: Tests
  2. permissions:
  3. contents: read
  4. on:
  5. workflow_dispatch:
  6. push:
  7. branches:
  8. - main
  9. paths-ignore:
  10. - "LICENSE"
  11. - "**.md"
  12. pull_request:
  13. paths-ignore:
  14. - "LICENSE"
  15. - "**.md"
  16. jobs:
  17. unit:
  18. name: Unit Tests
  19. runs-on: ubuntu-latest
  20. strategy:
  21. matrix:
  22. base_docker_image: [alpine, debian]
  23. fail-fast: false
  24. steps:
  25. - uses: actions/checkout@v5
  26. - name: Set up Python 3.12
  27. uses: actions/setup-python@v5
  28. with:
  29. python-version: 3.12
  30. - name: Install dependencies
  31. run: |
  32. python -m pip install --upgrade pip
  33. pip install -r python-requirements.txt
  34. working-directory: test/requirements
  35. - name: Pull nginx:alpine image
  36. run: docker pull nginx:alpine
  37. - name: Build Docker web server image
  38. run: make build-webserver
  39. - name: Build Docker nginx proxy test image
  40. run: make build-nginx-proxy-test-${{ matrix.base_docker_image }}
  41. - name: Run tests
  42. run: pytest --ignore-flaky
  43. working-directory: test