diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c06cc76..6064c9b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,5 +1,9 @@ -name: "Python Package" +name: "Run Python Checks" + on: + pull_request: + branches: + - 'main' push: branches: - main @@ -10,28 +14,22 @@ jobs: strategy: matrix: python-version: - - "3.7" - - "3.8" - - "3.9" - "3.10" + - "3.11" steps: - - uses: actions/checkout@v3 - + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -e .[dev,test] - + pip install .[dev,test] - name: Run linting run: | python -m flake8 -v --config .flake8 --black-config pyproject.toml --show-source continue-on-error: true - - - name: Run tests + - name: Run unit tests run: | python -m pytest -vvv --cov --cov-context=test --cov-report=xml