File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,26 @@ description: A GitHub Action to validate a compstate.
3
3
runs :
4
4
using : composite
5
5
steps :
6
+ - name : Copy requirements locally
7
+ id : copy-requirements
8
+ shell : bash
9
+ run :
10
+ # `cache-dependency-path` seems to need to be within the current directory. Use a temporary directory
11
+ #
12
+ tempdir=$(mktemp --directory --tmpdir=. --suffix=-srcomp-validate-action)
13
+ cp ${{ github.action_path }}/requirements.txt $tempdir/requirements.txt
14
+ echo "::set-output name=directory::${tempdir}"
15
+
6
16
- name : Set up Python
7
17
uses : actions/setup-python@v3
8
18
with :
9
19
python-version : ' 3.10'
10
20
cache : pip
11
- cache-dependency-path : ${{ github.action_path }}/requirements.txt
21
+ cache-dependency-path : ${{ steps.copy-requirements.outputs.directory }}/requirements.txt
12
22
13
23
- name : Install Dependencies
14
24
shell : bash
15
- run : pip install -U -r ${{ github.action_path }}/requirements.txt
25
+ run : pip install -U -r ${{ steps.copy-requirements.outputs.directory }}/requirements.txt
16
26
17
27
- name : Run Compstate Validation
18
28
shell : bash
You can’t perform that action at this time.
0 commit comments