ruff.yml 833 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: ruff
  2. on:
  3. # Trigger the workflow on push or pull request,
  4. # but only for the main branch
  5. push:
  6. branches:
  7. - main
  8. - dev
  9. pull_request:
  10. branches:
  11. - main
  12. - dev
  13. jobs:
  14. ruff:
  15. runs-on: ubuntu-latest
  16. strategy:
  17. matrix:
  18. python-version: ["3.10"]
  19. steps:
  20. - uses: actions/checkout@v2
  21. - name: Set up Python ${{ matrix.python-version }}
  22. uses: actions/setup-python@v2
  23. with:
  24. python-version: ${{ matrix.python-version }}
  25. - name: Install dependencies
  26. run: |
  27. python -m pip install --upgrade pip
  28. pip install ruff==0.1.5 codespell==2.2.6 tomli==2.0.1
  29. - name: Analysing the code with ruff
  30. run: |
  31. ruff aphrodite tests
  32. - name: Spelling check with codespell
  33. run: |
  34. codespell --toml pyproject.toml