FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql-action/.github/workflows/python-deps.yml at main · lvyinggithub/codeql-action · GitHub
lvyinggithub
/
codeql-action
Public
forked from
github/codeql-action
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
12
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql-action
/
.github
/
workflows
/
python-deps.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
133 lines (111 loc) · 4.88 KB
Breadcrumbs
codeql-action
/
.github
/
workflows
/
python-deps.yml
Copy path
File metadata and controls
133 lines (111 loc) · 4.88 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
name
:
Test Python Package Installation on Linux and Mac
on
:
push
:
branches
:
[main, v1]
pull_request
:
jobs
:
test-setup-python-scripts
:
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
os
:
[ubuntu-latest, macos-latest]
include
:
-
test_dir
:
python-setup/tests/pipenv/requests-2
test_script
:
$GITHUB_WORKSPACE/python-setup/tests/check_requests_123.sh 2
-
test_dir
:
python-setup/tests/pipenv/requests-3
test_script
:
$GITHUB_WORKSPACE/python-setup/tests/check_requests_123.sh 3
-
test_dir
:
python-setup/tests/poetry/requests-2
test_script
:
$GITHUB_WORKSPACE/python-setup/tests/check_requests_123.sh 2
-
test_dir
:
python-setup/tests/poetry/requests-3
test_script
:
$GITHUB_WORKSPACE/python-setup/tests/check_requests_123.sh 3
-
test_dir
:
python-setup/tests/requirements/requests-2
test_script
:
$GITHUB_WORKSPACE/python-setup/tests/check_requests_123.sh 2
-
test_dir
:
python-setup/tests/requirements/requests-3
test_script
:
$GITHUB_WORKSPACE/python-setup/tests/check_requests_123.sh 3
-
test_dir
:
python-setup/tests/setup_py/requests-2
test_script
:
$GITHUB_WORKSPACE/python-setup/tests/check_requests_123.sh 2
-
test_dir
:
python-setup/tests/setup_py/requests-3
test_script
:
$GITHUB_WORKSPACE/python-setup/tests/check_requests_123.sh 3
#
This one shouldn't fail, but also won't install packages
-
test_dir
:
python-setup/tests/requirements/non-standard-location
test_script
:
test -z $LGTM_INDEX_IMPORT_PATH
steps
:
#
Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
-
uses
:
actions/checkout@v2
-
name
:
Initialize CodeQL
uses
:
./init
id
:
init
with
:
tools
:
latest
languages
:
python
setup-python-dependencies
:
false
-
name
:
Test Auto Package Installation
run
:
|
set -x
$GITHUB_WORKSPACE/python-setup/install_tools.sh
cd $GITHUB_WORKSPACE/${{ matrix.test_dir }}
case ${{ matrix.os }} in
ubuntu-latest*) basePath="/opt";;
macos-latest*) basePath="/Users/runner";;
esac
echo ${basePath}
$GITHUB_WORKSPACE/python-setup/auto_install_packages.py "$(dirname ${{steps.init.outputs.codeql-path}})"
-
name
:
Setup for extractor
run
:
|
echo $CODEQL_PYTHON
# only run if $CODEQL_PYTHON is set
if [ ! -z $CODEQL_PYTHON ]; then
$GITHUB_WORKSPACE/python-setup/tests/from_python_exe.py $CODEQL_PYTHON;
fi
-
name
:
Verify packages installed
run
:
|
${{ matrix.test_script }}
test-setup-python-scripts-windows
:
runs-on
:
windows-latest
strategy
:
fail-fast
:
false
matrix
:
include
:
-
test_dir
:
python-setup/tests/pipenv/requests-2
python_version
:
2
-
test_dir
:
python-setup/tests/pipenv/requests-3
python_version
:
3
-
test_dir
:
python-setup/tests/poetry/requests-2
python_version
:
2
-
test_dir
:
python-setup/tests/poetry/requests-3
python_version
:
3
-
test_dir
:
python-setup/tests/requirements/requests-2
python_version
:
2
-
test_dir
:
python-setup/tests/requirements/requests-3
python_version
:
3
-
test_dir
:
python-setup/tests/setup_py/requests-2
python_version
:
2
-
test_dir
:
python-setup/tests/setup_py/requests-3
python_version
:
3
steps
:
#
Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
-
uses
:
actions/checkout@v2
-
name
:
Initialize CodeQL
uses
:
./init
with
:
tools
:
latest
languages
:
python
setup-python-dependencies
:
false
-
name
:
Test Auto Package Installation
run
:
|
$cmd = $Env:GITHUB_WORKSPACE + "\\python-setup\\install_tools.ps1"
powershell -File $cmd
cd $Env:GITHUB_WORKSPACE\\${{ matrix.test_dir }}
$DefaultsPath = Join-Path (Join-Path $Env:GITHUB_WORKSPACE "src") "defaults.json"
$CodeQLBundleName = (Get-Content -Raw -Path $DefaultsPath | ConvertFrom-Json).bundleVersion
$CodeQLVersion = "0.0.0-" + $CodeQLBundleName.split("-")[-1]
py -3 $Env:GITHUB_WORKSPACE\\python-setup\\auto_install_packages.py C:\\hostedtoolcache\\windows\\CodeQL\\$CodeQLVersion\\x64\\codeql
-
name
:
Setup for extractor
run
:
|
echo $Env:CODEQL_PYTHON
py -3 $Env:GITHUB_WORKSPACE\\python-setup\\tests\\from_python_exe.py $Env:CODEQL_PYTHON
-
name
:
Verify packages installed
run
:
|
$cmd = $Env:GITHUB_WORKSPACE + "\\python-setup\\tests\\check_requests_123.ps1"
powershell -File $cmd ${{ matrix.python_version }}
Back
|
FazBrowse Home
|
New Git URL