Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add support of python 3.8, 3.9 in unit test matrix #149

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/unit_test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,26 @@ env:
AWS_DEFAULT_REGION: us-west-2

jobs:
unit_test_matrix:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
./devtool install_deps

- name: Test
run: |
./devtool unit_tests

test_coverage_python_310:
runs-on: ubuntu-latest
env:
Expand Down
10 changes: 8 additions & 2 deletions devtool
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,20 @@ install_poetry_version() {
poetry config installer.max-workers 2
}

unit_tests(){
echo "Unit Tests"
echo "=================="
pytest --pspec test/unit
}

unit_test_with_coverage() {
echo "Test with coverage"
echo "=================="
coverage run -m pytest -x --pspec test/unit
coverage report -m --fail-under=100
}
}

run_integ_tests() {
run_integ_tests() {
pytest test/integration/
}

Expand Down
Loading
Loading