mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-03-01 04:26:23 +00:00
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:
7
.github/workflows/python-tests.yml
vendored
7
.github/workflows/python-tests.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user