Skip to content

Commit

Permalink
Cache python dependences
Browse files Browse the repository at this point in the history
  • Loading branch information
c8y3 committed Jan 5, 2024
1 parent fa8e553 commit 89b77b7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ jobs:
run: |
mkdir runtime/graylog/plugin
cp ${{ steps.requestPom.outputs.JAR_PATH }} runtime/graylog/plugin
# TODO should try to cache dependencies installed with pip?
- name: Cache backend tests python dependences
uses: actions/cache@v3
with:
path: plugin/validation/server/venv
key: ${{ hashFiles('plugin/validation/server/requirements.txt') }}
- name: Execute backend tests
working-directory: plugin/validation/server
run: |
Expand All @@ -71,6 +75,11 @@ jobs:
pip install -r requirements.txt
docker-compose --project-directory ../../runtime pull
PYTHONUNBUFFERED=true PYTHONPATH=.. python -m unittest --verbose
- name: Cache Playwright tests python dependences
uses: actions/cache@v3
with:
path: plugin/validation/server/venv
key: ${{ hashFiles('plugin/validation/end_to_end/requirements.txt') }}
- name: Run Playwright tests
working-directory: plugin/validation/end_to_end
run: |
Expand Down

0 comments on commit 89b77b7

Please sign in to comment.