1- # Extended testing using Python 3.9, 3.10, 3.11 & 3.12 INCLUDING integration tests
2- # Triggered by a pull request to main branch created
3- # Triggered by a pull request to main branch updated by a new commit
4- # Triggered by a pull request to main branch converted from drat to regular (non-draft)
5- # EXCEPTION for draft pull request: EXCLUDING integration tests, upload test results & code cov.
1+ # Extended testing, INCLUDDING integration tests
2+ # Python:
3+ # - 3.9
4+ # - 3.10
5+ # - 3.11
6+ # - 3.12
7+ # Triggered by:
8+ # - Creating a new PR to main branch
9+ # - Addind commit(s) to an existing PR to main branch
10+ # - Addind commit(s) to main branch:
11+ # - Direct commit without PR
12+ # - Updating the out-of-date base branch to an existing PR to main branch
613
714name : extended-tests-integration
815
916on :
17+ push :
18+ branches : [main]
1019 pull_request :
1120 branches : [main]
12- types : [opened, synchronize, ready_for_review]
21+ types : [opened, synchronize]
22+ workflow_dispatch :
1323
1424jobs :
1525
4454 black --check -S -l 100 pori_python tests
4555
4656 - name : Tests with pytest, including integration tests
47- if : ${{ github.event.pull_request.draft == true }}
48- run : |
49- pip list
50- pytest --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov pori_python --cov-report term --cov-report xml
51- env :
52- IPR_USER : ${{ secrets.IPR_TEST_USER }}
53- IPR_PASS : ${{ secrets.IPR_TEST_PASSWORD }}
54- GRAPHKB_USER : ${{ secrets.GKB_TEST_USER }}
55- GRAPHKB_PASS : ${{ secrets.GKB_TEST_PASS }}
56- EXCLUDE_INTEGRATION_TESTS : 1
57-
58- - name : Tests with pytest, including integration tests
59- if : ${{ github.event.pull_request.draft == false }}
6057 run : |
6158 pip list
6259 pytest --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov pori_python --cov-report term --cov-report xml
@@ -68,21 +65,15 @@ jobs:
6865 EXCLUDE_INTEGRATION_TESTS : 0
6966
7067 - name : Upload pytest test results
71- if : ${{ (
72- github.event.pull_request.draft == false &&
73- matrix.python-version == '3.9'
74- ) }}
68+ if : ${{ matrix.python-version == '3.9' }}
7569 uses : actions/upload-artifact@v4
7670 with :
7771 name : pytest-results-${{ matrix.python-version }}
7872 path : junit/test-results-${{ matrix.python-version }}.xml
7973 # Use always() to always run this step to publish test results when there are test failures
8074
8175 - name : Update code coverage report to CodeCov
82- if : ${{ (
83- github.event.pull_request.draft == false &&
84- matrix.python-version == '3.9'
85- ) }}
76+ if : ${{ matrix.python-version == '3.9' }}
8677 uses : codecov/codecov-action@v5
8778 with :
8879 token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments