From 791d747fd315162c53744bc7c95ba20e43f77672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Silva-S=C3=A1nchez?= <31875788+DSilva27@users.noreply.github.com> Date: Fri, 12 Jul 2024 14:49:56 -0400 Subject: [PATCH 1/4] Update testing.yml Caching the dependencies is breaking tests as the code in the repo does not get updated. I also removed clutter in the step that runs the tests --- .github/workflows/testing.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 829a237..4c6d00f 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -55,8 +55,5 @@ jobs: - name: Test with pytest run: | - pytest tests/test_preprocessing.py - pytest tests/test_svd.py - pytest tests/test_map_to_map.py - pytest tests/test_distribution_to_distribution.py + pytest tests/ From 74726f6616f8ddf0499d12767d65573c624492c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Silva-S=C3=A1nchez?= <31875788+DSilva27@users.noreply.github.com> Date: Fri, 12 Jul 2024 15:02:22 -0400 Subject: [PATCH 2/4] Update testing.yml --- .github/workflows/testing.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 4c6d00f..829a237 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -55,5 +55,8 @@ jobs: - name: Test with pytest run: | - pytest tests/ + pytest tests/test_preprocessing.py + pytest tests/test_svd.py + pytest tests/test_map_to_map.py + pytest tests/test_distribution_to_distribution.py From 9efe6705f601c470a74cc936ad988f48de18e7f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Silva-S=C3=A1nchez?= <31875788+DSilva27@users.noreply.github.com> Date: Fri, 12 Jul 2024 15:25:23 -0400 Subject: [PATCH 3/4] Update testing.yml --- .github/workflows/testing.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 829a237..b101ef3 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -16,21 +16,14 @@ jobs: matrix: python-version: ["3.8", "3.9", "3.10", "3.11"] + steps: - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - - name: Cache dependencies - id: cache_deps - uses: actions/cache@v3 - with: - path: | - ${{ env.pythonLocation }} - key: venv-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('**/pyproject.toml') }} + cache: 'pip' # caching pip dependencies - name: Cache test data id: cache_test_data @@ -42,7 +35,6 @@ jobs: key: venv-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('**/tests/scripts/fetch_test_data.sh') }} - name: Install dependencies - if: ${{ steps.cache_deps.outputs.cache-hit != 'true' }} run: | python -m pip install --upgrade pip pip install . From 312d79bdd0d42948f393709c900f6c95c80bb439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Silva-S=C3=A1nchez?= <31875788+DSilva27@users.noreply.github.com> Date: Fri, 12 Jul 2024 15:28:04 -0400 Subject: [PATCH 4/4] Update testing.yml --- .github/workflows/testing.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index b101ef3..f8a40f2 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -18,9 +18,9 @@ jobs: 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 }} cache: 'pip' # caching pip dependencies