Skip to content

Commit

Permalink
CI: adjust htmlcov artifacts path (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
defanator authored Apr 22, 2024
1 parent 378b0c7 commit 30fee58
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: htmlcov-py${{ matrix.python }}
path: htmlcov.py*
path: htmlcov-py${{ matrix.python }}
retention-days: 14
- name: Build package
run: make build
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ clean: ## Clean up
rm -rf $(TOPDIR)/$${dir} ; \
done
rm -f $(TOPDIR)/.coverage
rm -rf $(TOPDIR)/htmlcov.py*
rm -rf $(TOPDIR)/htmlcov-py*
rm -f $(TOPDIR)/src/zont_api/version.py $(TOPDIR)/VERSION

.PHONY: build test lint fmt venv clean
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ commands =
coverage report -m
coverage html
coverage json -o htmlcov/coverage.json
python -c 'from sys import version_info; from shutil import rmtree; from os import rename; rename(".coverage", f"htmlcov/.coverage"); rmtree(f"htmlcov.py{version_info.major}{version_info.minor}", ignore_errors=True); rename("htmlcov", f"htmlcov.py{version_info.major}{version_info.minor}")'
python -c 'from sys import version_info; from shutil import rmtree; from os import rename; rename(".coverage", f"htmlcov/.coverage"); rmtree(f"htmlcov-py{version_info.major}.{version_info.minor}", ignore_errors=True); rename("htmlcov", f"htmlcov-py{version_info.major}.{version_info.minor}")'

[testenv:lint]
description = run linters
Expand Down

0 comments on commit 30fee58

Please sign in to comment.