|
| 1 | +# Limited testing using Python 3.9 only, INCLUDING integration tests |
| 2 | +# Triggered by a regular (non-draft) pull request created |
| 3 | +# Triggered by a regular (non-draft) pull request updated by a new commit |
| 4 | +# Triggered by a draft pull request converted into a regular (non-draft) one |
| 5 | + |
| 6 | +name: quick-tests-integration |
| 7 | + |
| 8 | +on: |
| 9 | + pull_request: |
| 10 | + types: [opened, synchronize, ready_for_review] |
| 11 | + |
| 12 | +jobs: |
| 13 | + |
| 14 | + quick-tests-integration: |
| 15 | + if: ${{ github.event.pull_request.draft == false }} |
| 16 | + runs-on: ubuntu-latest |
| 17 | + steps: |
| 18 | + - name: Checkout repository |
| 19 | + uses: actions/checkout@v4 |
| 20 | + |
| 21 | + - name: Set up Python 3.9 |
| 22 | + uses: actions/setup-python@v5 |
| 23 | + with: |
| 24 | + python-version: "3.9" |
| 25 | + |
| 26 | + - name: Install dependencies |
| 27 | + run: | |
| 28 | + python -m pip install --upgrade pip setuptools |
| 29 | + pip install -e .[test] # coverage reports need -e to capture properly |
| 30 | +
|
| 31 | + - name: Lint with flake8 |
| 32 | + run: | |
| 33 | + pip install flake8 |
| 34 | + # stop the build if there are Python syntax errors or undefined names |
| 35 | + flake8 pori_python --count --select=E9,F63,F7,F82 --show-source --statistics |
| 36 | +
|
| 37 | + - name: Check with black |
| 38 | + run: | |
| 39 | + pip install black |
| 40 | + black --check -S -l 100 pori_python tests |
| 41 | +
|
| 42 | + - name: Tests with pytest, including integration tests |
| 43 | + run: pytest --junitxml=junit/test-results-3.9.xml --cov ipr --cov-report term --cov-report xml |
| 44 | + env: |
| 45 | + IPR_USER: ${{ secrets.IPR_TEST_USER }} |
| 46 | + IPR_PASS: ${{ secrets.IPR_TEST_PASSWORD }} |
| 47 | + GRAPHKB_USER: ${{ secrets.GKB_TEST_USER }} |
| 48 | + GRAPHKB_PASS: ${{ secrets.GKB_TEST_PASS }} |
| 49 | + EXCLUDE_INTEGRATION_TESTS: 0 |
0 commit comments