Skip to content

Commit

Permalink
speed up int tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gsheni committed Jul 4, 2023
1 parent 3cae3cd commit 0e92094
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ on:
- main
workflow_dispatch:
jobs:
unit_tests:
name: ${{ matrix.python_version }} unit tests ${{ matrix.type_of_tests }}
tests:
name: ${{ matrix.python_version }} ${{ matrix.type_of_tests }} tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.11"]
type_of_tests: ["unit tests", "integration tests"]
type_of_tests: ["unit", "integration"]
exclude:
- python-version: "3.8"
type_of_tests: "integration tests"
type_of_tests: "integration"
steps:
- uses: actions/checkout@v3
- name: Set up python ${{ matrix.python-version }}
Expand All @@ -40,6 +40,7 @@ jobs:
if: (steps.cache.outputs.cache-hit == 'true') && ( github.event.pull_request.title != 'Automated Latest Dependency Updates')
run: python -m pip install --no-dependencies .
- name: Run unit tests
if: ${{ matrix.type_of_tests != 'integration tests' }}
run: make unit-tests
- name: Run integration tests
if: ${{ matrix.type_of_tests == 'integration tests' }}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ unit-tests:

.PHONY: integration-tests
integration-tests:
$(PYTEST) tests/integration_tests
$(PYTEST) tests/integration_tests --sample 100

.PHONY: upgradepip
upgradepip:
Expand Down

0 comments on commit 0e92094

Please sign in to comment.