File tree 5 files changed +2
-14
lines changed
conda_forge_feedstock_ops
5 files changed +2
-14
lines changed Original file line number Diff line number Diff line change 65
65
- name : run tests
66
66
run : |
67
67
pytest -vvs tests
68
- env :
69
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
70
68
71
69
- name : ensure cli runs
72
70
run : |
Original file line number Diff line number Diff line change 21
21
def lint (feedstock_dir , use_container = None ):
22
22
"""Lint all of the recipes in a feedstock.
23
23
24
- **WARNING: This function will inject the GH_TOKEN env var into
25
- the container in order to run conda-forge-specific linting.
26
- Make sure that token is read-only.**
27
-
28
24
Parameters
29
25
----------
30
26
feedstock_dir : str
@@ -74,7 +70,6 @@ def _lint_containerized(feedstock_dir):
74
70
mount_readonly = True ,
75
71
mount_dir = tmpdir ,
76
72
json_loads = loads ,
77
- extra_container_args = ["-e" , "GH_TOKEN" ],
78
73
)
79
74
80
75
# When tempfile removes tempdir, it tries to reset permissions on subdirs.
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ platforms:
8
8
dependencies :
9
9
- click
10
10
- conda-build >=3.27
11
- - conda-smithy
11
+ - conda-smithy >=3.40
12
12
- python-rapidjson
13
13
- pyyaml
14
14
- rattler-build-conda-compat >=0.0.2,<2.0.0a0
Original file line number Diff line number Diff line change 42
42
not (HAVE_CONTAINERS and HAVE_TEST_IMAGE ), reason = "containers not available"
43
43
)
44
44
45
- skipif_no_github_token = pytest .mark .skipif (
46
- "GH_TOKEN" not in os .environ , reason = "no GH_TOKEN in environment"
47
- )
48
-
49
45
50
46
@pytest .fixture (autouse = True , scope = "session" )
51
47
def set_cf_feedstock_ops_container_tag_to_test ():
Original file line number Diff line number Diff line change 1
1
import os
2
2
3
- from conftest import skipif_no_containers , skipif_no_github_token
3
+ from conftest import skipif_no_containers
4
4
5
5
from conda_forge_feedstock_ops .lint import lint
6
6
7
7
8
- @skipif_no_github_token
9
8
def test_lint_local ():
10
9
feedstock_dir = os .path .join (os .path .dirname (__file__ ), "data" )
11
10
lints , hints = lint (
You can’t perform that action at this time.
0 commit comments