Skip to content

Commit

Permalink
update: ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
olivmath committed Jun 23, 2023
1 parent 947cd32 commit 304706c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 40 deletions.
38 changes: 1 addition & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,40 +35,4 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
coverage run -m pytest -vv
env:
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}
CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}
- name: Store coverage files
uses: actions/upload-artifact@v3
with:
name: coverage
path: coverage

coverage-combine:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.8"
# Issue ref: https://github.com/actions/setup-python/issues/436
# cache: "pip"
# cache-dependency-path: pyproject.toml
- name: Get coverage files
uses: actions/download-artifact@v3
with:
name: coverage
path: coverage
- run: pip install coverage[toml]
- run: ls -la coverage
- run: coverage combine coverage
- run: coverage report
- run: coverage html --show-contexts --title "Coverage for ${{ github.sha }}"
- name: Store coverage HTML
uses: actions/upload-artifact@v3
with:
name: coverage-html
path: htmlcov
pytest -vv
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
<a href="https://github.com/olivmath/merkly/actions/workflows/ci.yml">
<img src="https://github.com/olivmath/merkly/actions/workflows/ci.yml/badge.svg?branch=main">
</a>
<a href="https://coverage-badge.samuelcolvin.workers.dev/redirect/olivmath/merkly" target="_blank">
<img src="https://coverage-badge.samuelcolvin.workers.dev/olivmath/merkly.svg" alt="Coverage">
</a>
<a href="https://pypi.org/project/merkly/">
<img src="https://img.shields.io/pypi/pyversions/merkly">
</a>
Expand Down

0 comments on commit 304706c

Please sign in to comment.