python-app.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. schedule:
  6. - cron: '30 5,17 * * *'
  7. # push:
  8. # branches: [ "main" ]
  9. # pull_request:
  10. # branches: [ "main" ]
  11. permissions:
  12. contents: read
  13. jobs:
  14. build:
  15. runs-on: ubuntu-latest
  16. steps:
  17. - uses: actions/checkout@v3
  18. - name: Set up Python 3.10
  19. uses: actions/setup-python@v3
  20. with:
  21. python-version: "3.10"
  22. - name: Install Poetry
  23. uses: snok/install-poetry@v1
  24. - name: Install dependencies
  25. run: |
  26. poetry install --no-interaction
  27. - name: Get Latest Fixtures
  28. run: |
  29. poetry run python main.py
  30. - name: Commit Changes
  31. run: |
  32. git config --global user.name 'Karl Hudgell'
  33. git config --global user.email 'karl@me.com'
  34. git commit -am "Updated ical"
  35. git push