Skip to content

Commit c0f9206

Browse files
committed
CI: Remove caching and main branch limitation for setup action
1 parent be8e739 commit c0f9206

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

.github/workflows/pytests.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,7 @@ jobs:
1818
fetch-depth: 2
1919

2020
- name: Setup Gardenlinux
21-
uses: gardenlinux/python-gardenlinux-lib/.github/actions/setup@main
22-
23-
- name: Activate caching based on lockfile
24-
id: lockfile
25-
run: |
26-
if [ -f poetry.lock ]; then
27-
echo "cache_type=poetry" >> $GITHUB_OUTPUT
28-
elif [ -f requirements.txt ]; then
29-
echo "cache_type=pip" >> $GITHUB_OUTPUT
30-
else
31-
# no lockfile present: create empty requirements.txt and use pip caching
32-
touch requirements.txt
33-
echo "cache_type=pip" >> $GITHUB_OUTPUT
34-
fi
21+
uses: ./.github/actions/setup
3522

3623
- name: Install Poetry
3724
uses: snok/install-poetry@v1

0 commit comments

Comments
 (0)