diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index c303a7b..8e3257b 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -1,14 +1,30 @@ -name: Build and test [Python 3.9, 3.10] - -on: [push, pull_request] - +name: Build and test +on: + push: + paths: + - '**.yml' + - '**.toml' + - '**.ini' + - '**.py' + - '**.json' + - '**.csv' + - '**.pkl' + pull_request: + paths: + - '**.yml' + - '**.toml' + - '**.ini' + - '**.py' + - '**.json' + - '**.csv' + - '**.pkl' jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-latest] - python-version: ["3.9", "3.10", "3.11"] + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: ["3.10", "3.11"] steps: - name: Checkout @@ -30,13 +46,11 @@ jobs: shell: bash -l {0} run: | pip install -e . - pip install pytest-cov - pip install pytest-pycodestyle - name: Test shell: bash -l {0} working-directory: ./ run: | - pytest -m 'not local' --cov=./ --cov-report=xml + python -m pytest -m 'not local' --cov=./ --cov-report=xml - name: Upload coverage to Codecov if: matrix.os == 'ubuntu-latest' && contains(github.repository, 'EAPD-DRB/OG-ZAF') uses: codecov/codecov-action@v4