python-app.yml 794 B

12345678910111213141516171819202122232425262728293031323334
  1. # This workflow will install Python dependencies, run tests and lint with a single version of Python
  2. # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
  3. name: Python application
  4. on:
  5. push:
  6. branches: [ "main" ]
  7. pull_request:
  8. branches: [ "main" ]
  9. permissions:
  10. contents: read
  11. jobs:
  12. build:
  13. runs-on: ubuntu-latest
  14. steps:
  15. - uses: actions/checkout@v3
  16. - name: Set up Python 3.10
  17. uses: actions/setup-python@v3
  18. with:
  19. python-version: "3.10"
  20. - name: Install Poetry
  21. uses: snok/install-poetry@v1
  22. - name: Install dependencies
  23. run: |
  24. poetry install --no-interaction
  25. - name: Get latests
  26. run: |
  27. ls
  28. poetry run python main.py