-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
very-doge-wow
committed
Mar 24, 2024
1 parent
b065a09
commit 54e1c31
Showing
1 changed file
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,26 +4,37 @@ jobs: | |
pytest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 # Checking out the repo | ||
# check out repo | ||
- uses: actions/checkout@v4 | ||
|
||
# install all deps in pipenv | ||
- name: install_deps | ||
uses: VaultVulp/[email protected] | ||
with: | ||
command: install -d # Install all dependencies, including development ones | ||
command: install -d | ||
|
||
# show installed deps in graph | ||
- name: show_graph | ||
uses: VaultVulp/[email protected] | ||
with: | ||
command: graph # shows installed pip packages | ||
|
||
# run pytest through coverage package | ||
- name: test | ||
uses: VaultVulp/[email protected] | ||
with: | ||
command: | | ||
run coverage run -m pytest && \ | ||
coverage report | ||
run coverage run -m pytest | ||
- name: Upload coverage to Codecov | ||
# generate coverage report | ||
- name: report | ||
uses: VaultVulp/[email protected] | ||
with: | ||
command: | | ||
run coverage report | ||
# upload coverage to codecov | ||
- name: upload | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|