File tree Expand file tree Collapse file tree 1 file changed +25
-15
lines changed
.github/actions/install-meltingpot Expand file tree Collapse file tree 1 file changed +25
-15
lines changed Original file line number Diff line number Diff line change @@ -38,34 +38,44 @@ runs:
38
38
meltingpot/assets
39
39
venv
40
40
key : install-meltingpot-${{ steps.os-info.outputs.name }}-${{ steps.os-info.outputs.version }}-py${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('setup.py') }}
41
- restore-keys : |
42
- install-meltingpot-${{ steps.os-info.outputs.name }}-${{ steps.os-info.outputs.version }}-py${{ steps.setup-python.outputs.python-version }}-
43
41
44
- - name : Install Melting Pot
42
+ - name : Create venv
45
43
if : steps.restore.outputs.cache-hit != 'true'
46
44
shell : bash
47
45
run : |
48
46
python -m venv venv
49
- source venv/bin/activate
50
- pip install --editable .[dev]
51
47
52
- - name : Save Melting Pot installation
53
- if : steps.restore.outputs.cache-hit != 'true'
54
- uses : actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
55
- with :
56
- path : |
57
- meltingpot/assets
58
- venv
59
- key : ${{ steps.restore.outputs.cache-primary-key }}
60
-
61
- - name : Activate virtual environment
48
+ - name : Activate venv
62
49
shell : bash
63
50
run : |
64
51
echo "${PWD}/venv/bin" >> $GITHUB_PATH
65
52
53
+ - name : Install Melting Pot
54
+ if : steps.restore.outputs.cache-hit != 'true'
55
+ shell : bash
56
+ run : |
57
+ pip install --editable .[dev]
58
+
66
59
- name : Show installation
67
60
shell : bash
68
61
run : |
69
62
which python
63
+ python --version
70
64
which pip
65
+ pip --version
66
+ which pylint
67
+ pylint --version
68
+ which pytest
69
+ pytest --version
70
+ which pytype
71
+ pytype --version
71
72
pip list
73
+
74
+ - name : Save Melting Pot installation
75
+ if : steps.restore.outputs.cache-hit != 'true'
76
+ uses : actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9
77
+ with :
78
+ path : |
79
+ meltingpot/assets
80
+ venv
81
+ key : ${{ steps.restore.outputs.cache-primary-key }}
You can’t perform that action at this time.
0 commit comments