From 4dc0ed23714f05c4ca23e772af7d6a11d2cd4bc4 Mon Sep 17 00:00:00 2001 From: guarin Date: Tue, 13 Feb 2024 10:36:39 +0000 Subject: [PATCH] Always trigger minimal dependencies check --- .github/workflows/test_minimal_deps.yml | 63 ++++++++++++++----------- 1 file changed, 36 insertions(+), 27 deletions(-) diff --git a/.github/workflows/test_minimal_deps.yml b/.github/workflows/test_minimal_deps.yml index 3817d4ab6..6f85ba362 100644 --- a/.github/workflows/test_minimal_deps.yml +++ b/.github/workflows/test_minimal_deps.yml @@ -2,42 +2,51 @@ name: Minimal Dependency Tests on: push: - paths-ignore: - - 'docs/**' - - 'examples/**' - - 'benchmarks/**' pull_request: - paths-ignore: - - 'docs/**' - - 'examples/**' - - 'benchmarks/**' workflow_dispatch: jobs: + check-paths: + runs-on: ubuntu-latest + outputs: + run-tests: ${{ steps.filter.outputs.run-tests }} + steps: + - uses: actions/checkout@v3 + - uses: dorny/paths-filter@v2 + id: filter + with: + list-files: shell + filters: | + run-tests: + - '!docs/**' + - '!examples/**' + - '!benchmarks/**' + test: name: Test + needs: check-paths + if: needs.check-paths.outputs.run-tests == 'true' runs-on: ubuntu-latest strategy: matrix: python: ["3.7"] - steps: - - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python }} - - name: Cache Python Dependencies - uses: actions/cache@v2 - with: - path: ${{ env.pythonLocation }} - key: minimal-env-${{ runner.os }}-python-${{ matrix.python }}-${{ hashFiles('requirements/minimal_requirements.txt') }} - - name: Install Minimal Dependencies - run: pip install -r requirements/minimal_requirements.txt - - name: Install Package Without Dependencies - run: pip install --no-deps . - - name: Run Tests - run: | - export LIGHTLY_SERVER_LOCATION="localhost:-1" - python -m pytest -s -v --runslow + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python }} + - name: Cache Python Dependencies + uses: actions/cache@v2 + with: + path: ${{ env.pythonLocation }} + key: minimal-env-${{ runner.os }}-python-${{ matrix.python }}-${{ hashFiles('requirements/minimal_requirements.txt') }} + - name: Install Minimal Dependencies + run: pip install -r requirements/minimal_requirements.txt + - name: Install Package Without Dependencies + run: pip install --no-deps . + - name: Run Tests + run: | + export LIGHTLY_SERVER_LOCATION="localhost:-1" + python -m pytest -s -v --runslow