Merge pull request #33 from colinahill/development #235
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: Test Code Quality | |
on: | |
push: | |
pull_request: | |
branches: [development] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: 'pip' # caching pip dependencies | |
- name: Install poetry | |
run: pip install poetry | |
- name: Install dependencies | |
run: poetry update | |
- name: Check style with Ruff | |
run: poetry run ruff terrapyn/ tests/ --extend-ignore=D1,D2,D4,TID | |
- name: Check format with black | |
run: poetry run black --check terrapyn/ tests/ | |
- name: Unit & Coverage test with pytest | |
run: poetry run pytest terrapyn/ tests/ | |
- name: Update Coverage Badge | |
run: | | |
pip install readme-coverage-badger | |
readme-cov |