ci: run codecov directly instead of via GitHub Action
This commit is contained in:
parent
354309394d
commit
3fb5bfb4ad
|
|
@ -26,12 +26,11 @@ jobs:
|
||||||
python3 -m pip install ".[dev]"
|
python3 -m pip install ".[dev]"
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
source ./environment.sh
|
source ./environment.sh
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
make test
|
make test
|
||||||
|
|
||||||
- name: Upload results to Codecov
|
- name: Upload results to Codecov
|
||||||
uses: codecov/codecov-action@v4
|
run: |
|
||||||
with:
|
codecov -t ${{ secrets.CODECOV_TOKEN }}
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
|
||||||
2
Makefile
2
Makefile
|
|
@ -1,6 +1,6 @@
|
||||||
.PHONY: test format clean serve_docs
|
.PHONY: test format clean serve_docs
|
||||||
test:
|
test:
|
||||||
python3 -m pytest --cov-report json
|
python3 -m pytest --cov
|
||||||
|
|
||||||
format:
|
format:
|
||||||
python3 -m black .
|
python3 -m black .
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ requires-python = ">=3.8"
|
||||||
dev = [
|
dev = [
|
||||||
"pytest",
|
"pytest",
|
||||||
"pytest-cov",
|
"pytest-cov",
|
||||||
|
"codecov",
|
||||||
"ruff",
|
"ruff",
|
||||||
"mkdocs-material",
|
"mkdocs-material",
|
||||||
"amaranth_boards@git+https://github.com/amaranth-lang/amaranth-boards"
|
"amaranth_boards@git+https://github.com/amaranth-lang/amaranth-boards"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue