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.

38 lines
1006 B

  1. name: "Tests of push & pull"
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. env:
  8. FILENAME: README.md
  9. jobs:
  10. tests:
  11. name: 'Validate README.md changes'
  12. runs-on: ubuntu-latest
  13. steps:
  14. - name: Checkout repository
  15. uses: actions/checkout@v2
  16. - name: Set up Python
  17. uses: actions/setup-python@v2
  18. with:
  19. python-version: '3.8'
  20. - name: Install dependencies
  21. run: python -m pip install -r scripts/requirements.txt
  22. - name: Validate Markdown format
  23. run: python scripts/validate/format.py ${FILENAME}
  24. - name: Validate pull request changes
  25. run: scripts/github_pull_request.sh ${{ github.repository }} ${{ github.event.pull_request.number }} ${FILENAME}
  26. if: github.event_name == 'pull_request'
  27. - name: Checking if push changes are duplicated
  28. run: python scripts/validate/links.py ${FILENAME} --only_duplicate_links_checker
  29. if: github.event_name == 'push'