Skip to content

Commit

Permalink
Use pip-review to install latest in new job (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
darrencl authored Jan 2, 2025
1 parent cef8fe7 commit c999e74
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/ci-workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
branches:
- master
jobs:
test:
test-deps-pinned-version:
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -30,5 +30,31 @@ jobs:
run: |
pip install pytest-cov
pytest tests/ --doctest-modules --junitxml=junit/test-results.xml --cov=suspect --cov-report lcov:cov.info
- name: Coveralls
uses: coverallsapp/github-action@v2

test-deps-latest-version:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v4
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies and update to latest version
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt
pip install pip-review
pip-review --auto
- name: Test with pytest
run: |
pip install pytest-cov
pytest tests/ --doctest-modules --junitxml=junit/test-results.xml --cov=suspect --cov-report lcov:cov.info
- name: Coveralls
uses: coverallsapp/github-action@v2

0 comments on commit c999e74

Please sign in to comment.