Create optional dependency group for build, fix codecov (#567)

* Create optional dependency groups for build and cli

* revert cli optional-dependencies group
This commit is contained in:
Jed Laundry
2024-10-08 06:47:35 +13:00
committed by GitHub
parent 1ef3057110
commit 8444053476
4 changed files with 18 additions and 51 deletions

View File

@@ -39,7 +39,7 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install .[build]
- name: Test building documentation
run: |
cd docs
@@ -49,8 +49,7 @@ jobs:
ruff check .
- name: Run unit tests
run: |
coverage run tests.py
coverage json
pytest --cov --cov-report=xml tests.py
- name: Test sample DMARC reports
run: |
pip install -e .
@@ -61,3 +60,5 @@ jobs:
hatch build
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}