Skip to content

Commit

Permalink
Only run tests on master branch & Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
durera committed Jun 5, 2024
1 parent 7cc658f commit 499237d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
- python-version: "3.9"
primary-config: "true"
- python-version: "3.10"
primary-config: "false"
- python-version: "3.11"
primary-config: "true"
- python-version: "3.11"
primary-config: "false"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -37,7 +37,7 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 src --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest (only on Python 3.11 to avoid concurrency issues)
if: ${{ (github.ref == 'refs/heads/actions') && (matrix.primary-config == 'true') }}
if: ${{ (github.ref == 'refs/heads/master') && (matrix.primary-config == 'true') }}
env:
ONE_JOB_ONLY_TESTS: ${{ matrix.primary-config }}
WIOTP_API_KEY: ${{ secrets.WIOTP_API_KEY }}
Expand Down

0 comments on commit 499237d

Please sign in to comment.