Add support for line breaks #11
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: Lint and Test 🧪 | |
on: | |
pull_request: | |
types: [opened, edited, reopened, synchronize] | |
push: | |
branches: | |
- dev | |
- master | |
jobs: | |
lint-black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: psf/black@stable | |
lint-isort: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: isort/isort-action@v1 | |
test: | |
name: Run tests 🧪 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
sudo apt-get install -y poppler-utils | |
- name: Run pytest | |
run: | | |
pip install pytest pytest-cov | |
pytest --cov=src --cov-report=xml --cov-report=html |