You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
840 B

2 years ago
2 years ago
2 years ago
  1. name: Daily check
  2. on:
  3. schedule:
  4. - cron: "0 4 * * *"
  5. jobs:
  6. test:
  7. runs-on: ubuntu-latest
  8. strategy:
  9. fail-fast: false
  10. matrix:
  11. python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
  12. keycloak-version: ["20.0", "21.0", "latest"]
  13. env:
  14. KEYCLOAK_DOCKER_IMAGE_TAG: ${{ matrix.keycloak-version }}
  15. steps:
  16. - uses: actions/checkout@v3
  17. - name: Set up Python ${{ matrix.python-version }}
  18. uses: actions/setup-python@v3
  19. with:
  20. python-version: ${{ matrix.python-version }}
  21. - uses: docker-practice/actions-setup-docker@master
  22. - name: Install dependencies
  23. run: |
  24. python -m pip install --upgrade pip
  25. python -m pip install poetry
  26. poetry install
  27. - name: Run tests
  28. run: |
  29. poetry run tox -e tests