From c999e7455847ddc57e917fa11b7274751c7a633b Mon Sep 17 00:00:00 2001 From: Darren Christopher Lukas Date: Thu, 2 Jan 2025 08:14:23 +0700 Subject: [PATCH] Use pip-review to install latest in new job (#179) --- .github/workflows/ci-workflows.yaml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-workflows.yaml b/.github/workflows/ci-workflows.yaml index 3e800ac..0e12256 100644 --- a/.github/workflows/ci-workflows.yaml +++ b/.github/workflows/ci-workflows.yaml @@ -9,7 +9,7 @@ on: branches: - master jobs: - test: + test-deps-pinned-version: runs-on: ${{ matrix.os }} strategy: matrix: @@ -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 \ No newline at end of file