Pair pytest with GitHub actions #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check_News | |
on: | |
pull_request: | |
paths-ignore: | |
- ".pre-commit-config.yaml" | |
jobs: | |
news: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.8" | |
- name: Install dependencies | |
run: | | |
python -m pip install -U pip | |
python -m pip install towncrier | |
- name: Check for news | |
run: python -m towncrier check --compare-with origin/main |