Skip to content

Commit

Permalink
Enable caching of package dependencies (#442)
Browse files Browse the repository at this point in the history
Fixes #437
  • Loading branch information
allenporter authored Dec 20, 2023
1 parent 47c5bc2 commit 8ffce8b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
- name: Install extra packages
run: |
${{ matrix.pydantic-install }}
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ RUN flux version --client
COPY . /src/
WORKDIR /src/
RUN pip3 install -r /src/requirements.txt
RUN pip3 install -e /src/

SHELL ["/bin/bash", "-c"]
5 changes: 3 additions & 2 deletions action/diff/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ runs:
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- name: Install flux-local
cache: pip
- name: Install flux-local and requirements
run: |
python -m pip install --upgrade pip
pip install -r ${{ github.action_path }}/../../requirements.txt
pip install -e ${{ github.action_path }}/../../
shell: bash
- name: Checkout PR branch
Expand Down
5 changes: 3 additions & 2 deletions action/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ runs:
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python-version }}
- name: Install flux-local
cache: pip
- name: Install flux-local and requirements
run: |
python -m pip install --upgrade pip
pip install -r ${{ github.action_path }}/../../requirements.txt
pip install -e ${{ github.action_path }}/../../
shell: bash
- uses: supplypike/setup-bin@v3
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
-e .
aiofiles==23.2.1
black==23.12.0
coverage==7.3.3
Expand Down

0 comments on commit 8ffce8b

Please sign in to comment.