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.

95 lines
2.3 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. name: Lint
  2. on:
  3. push:
  4. branches: [master]
  5. pull_request:
  6. branches: [master]
  7. jobs:
  8. check-commits:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v3
  12. - uses: webiny/action-conventional-commits@v1.0.3
  13. check-linting:
  14. runs-on: ubuntu-latest
  15. steps:
  16. - uses: actions/checkout@v3
  17. - name: Set up Python 3.10
  18. uses: actions/setup-python@v3
  19. with:
  20. python-version: "3.10"
  21. - name: Install dependencies
  22. run: |
  23. python -m pip install --upgrade pip
  24. python -m pip install tox
  25. - name: Check linting, formatting
  26. run: |
  27. tox -e check
  28. check-docs:
  29. runs-on: ubuntu-latest
  30. needs:
  31. - check-commits
  32. - check-linting
  33. steps:
  34. - uses: actions/checkout@v3
  35. - name: Set up Python 3.10
  36. uses: actions/setup-python@v3
  37. with:
  38. python-version: "3.10"
  39. - name: Install dependencies
  40. run: |
  41. python -m pip install --upgrade pip
  42. python -m pip install tox
  43. - name: Check documentation build
  44. run: |
  45. tox -e docs
  46. test:
  47. runs-on: ubuntu-latest
  48. strategy:
  49. fail-fast: false
  50. matrix:
  51. python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
  52. needs:
  53. - check-commits
  54. - check-linting
  55. steps:
  56. - uses: actions/checkout@v3
  57. - name: Set up Python ${{ matrix.python-version }}
  58. uses: actions/setup-python@v3
  59. with:
  60. python-version: ${{ matrix.python-version }}
  61. - uses: docker-practice/actions-setup-docker@master
  62. - name: Install dependencies
  63. run: |
  64. python -m pip install --upgrade pip
  65. python -m pip install tox
  66. - name: Run tests
  67. run: |
  68. tox -e tests
  69. - name: Keycloak logs
  70. run: |
  71. cat keycloak_test_logs.txt
  72. build:
  73. runs-on: ubuntu-latest
  74. needs:
  75. - test
  76. - check-docs
  77. steps:
  78. - uses: actions/checkout@v3
  79. - name: Set up Python 3.10
  80. uses: actions/setup-python@v3
  81. with:
  82. python-version: "3.10"
  83. - name: Install dependencies
  84. run: |
  85. python -m pip install --upgrade pip
  86. python -m pip install tox
  87. - name: Run build
  88. run: |
  89. tox -e build