-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Showing
14 changed files
with
466 additions
and
133 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: pytest | ||
on: | ||
pull_request: | ||
branches: | ||
- "**" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
name: Check out repository | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Set env variabels | ||
run: | | ||
export CELERY_CONFIG_PATH="./tests/tests_config.yml" | ||
export SSH_USERNAME="root" | ||
export SSH_PASSWORD="root" | ||
- name: Prepare python env | ||
run: | | ||
python -m venv env | ||
env/bin/python -m pip install -U pip | ||
env/bin/python -m pip install -r requirements/celery.txt | ||
- name: Run unit tests (pytest) | ||
run: env/bin/python -m pytest -v --cov-report term-missing:skip-covered | ||
--cov-report xml:/tmp/coverage.xml --junitxml=/tmp/pytest.xml --cov=alts tests/ | tee /tmp/pytest-coverage.txt | ||
- name: Pytest coverage comment | ||
uses: MishaKav/pytest-coverage-comment@main | ||
with: | ||
pytest-coverage-path: /tmp/pytest-coverage.txt | ||
pytest-xml-coverage-path: /tmp/coverage.xml | ||
title: Coverage report for changed files | ||
badge-title: Total coverage | ||
hide-badge: false | ||
hide-report: false | ||
report-only-changed-files: true | ||
hide-comment: false | ||
remove-link-from-badge: false | ||
junitxml-path: /tmp/pytest.xml |
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
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
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
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
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
-r base.txt | ||
pytest==7.3.1 | ||
pytest==7.4.2 | ||
pytest-cov==4.1.0 | ||
pytest-check==2.1.4 | ||
pytest-testinfra==8.1.0 | ||
pytest-tap==3.3 |
Oops, something went wrong.