File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 1
1
name : pytest-remote-data
2
2
3
3
on :
4
+ # use pull_request_target, in combination with the `remote-data` label (below)
5
+ # so that we can access repository secrets.
6
+ # https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
4
7
pull_request_target :
5
8
types : [labeled]
6
9
31
34
with :
32
35
ref : ${{ github.event.pull_request.head.sha }}
33
36
34
- - name : Set up Python ${{ matrix.python-version }}${{ matrix.suffix }}
35
- uses : actions/setup-python@v1
36
- with :
37
- python-version : ${{ matrix.python-version }}
38
-
39
37
- name : Set up conda environment
40
38
uses : conda-incubator/setup-miniconda@v2
41
39
with :
Original file line number Diff line number Diff line change 33
33
steps :
34
34
- uses : actions/checkout@v2
35
35
36
- - name : Set up Python ${{ matrix.python-version }}${{ matrix.suffix }}
37
- uses : actions/setup-python@v1
38
- with :
39
- python-version : ${{ matrix.python-version }}
40
-
41
36
- name : Set up conda environment
42
37
if : matrix.environment-type == 'conda'
43
38
uses : conda-incubator/setup-miniconda@v2
51
46
# version, mapping from "3.7" to "37", second is to add "-min" if needed
52
47
REQUIREMENTS : ci/requirements-py${{ fromJSON(env.VERSIONMAP)[matrix.python-version] }}${{ matrix.suffix }}.yml
53
48
54
- - name : Create bare environment
49
+ - name : Set up bare Python ${{ matrix.python-version }}${{ matrix.suffix }} environment
55
50
if : matrix.environment-type == 'bare'
51
+ uses : actions/setup-python@v1
52
+ with :
53
+ python-version : ${{ matrix.python-version }}
56
54
run : |
57
55
pip install .[test]
58
56
You can’t perform that action at this time.
0 commit comments