Skip to content

Commit

Permalink
Showing 23 changed files with 352 additions and 49 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/python-deps.yml
@@ -58,7 +58,7 @@ jobs:
- name: Verify packages installed
run: |
$GITHUB_WORKSPACE/python-setup/tests/check_requests_123.sh ${PYTHON_VERSION}
$GITHUB_WORKSPACE/python-setup/tests/check_requests_2_26_0.sh ${PYTHON_VERSION}
# This one shouldn't fail, but also won't install packages
test-setup-python-scripts-non-standard-location:
@@ -123,6 +123,10 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Initialize CodeQL
uses: ./init
with:
@@ -149,5 +153,5 @@ jobs:
- name: Verify packages installed
run: |
$cmd = $Env:GITHUB_WORKSPACE + "\\python-setup\\tests\\check_requests_123.ps1"
$cmd = $Env:GITHUB_WORKSPACE + "\\python-setup\\tests\\check_requests_2_26_0.ps1"
powershell -File $cmd $Env:PYTHON_VERSION
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -4,6 +4,10 @@

No user facing changes.

## 1.0.19 - 18 Oct 2021

No user facing changes.

## 1.0.18 - 08 Oct 2021

- Fixed a bug where some builds were no longer being traced correctly. [#766](https://github.com/github/codeql-action/pull/766)
2 changes: 1 addition & 1 deletion lib/defaults.json
@@ -1,3 +1,3 @@
{
"bundleVersion": "codeql-bundle-20211005"
"bundleVersion": "codeql-bundle-20211013"
}
2 changes: 1 addition & 1 deletion node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "codeql",
"version": "1.0.19",
"version": "1.0.20",
"private": true,
"description": "CodeQL action",
"scripts": {
@@ -18,11 +18,11 @@ $env:PYTHONPATH=$FOUND_PYTHONPATH

$INSTALLED_REQUESTS_VERSION = (py -3 -c "import requests; print(requests.__version__)")

$EXPECTED_REQUESTS="1.2.3"
$EXPECTED_REQUESTS="2.26.0"

if ($INSTALLED_REQUESTS_VERSION -ne $EXPECTED_REQUESTS) {
write-host "Using $FOUND_PYTHONPATH as PYTHONPATH, we found version $INSTALLED_REQUESTS_VERSION of requests, but expected $EXPECTED_REQUESTS"
exit 1
} else {
write-host "Using $FOUND_PYTHONPATH as PYTHONPATH, we found version $INSTALLED_REQUESTS_VERSION of requests, which was expected"
}
}
@@ -22,11 +22,11 @@ PYTHON_EXE="python${EXPECTED_VERSION}"

INSTALLED_REQUESTS_VERSION=$(PYTHONPATH="${FOUND_PYTHONPATH}" "${PYTHON_EXE}" -c 'import requests; print(requests.__version__)')

EXPECTED_REQUESTS="1.2.3"
EXPECTED_REQUESTS="2.26.0"

if [[ "$INSTALLED_REQUESTS_VERSION" != "$EXPECTED_REQUESTS" ]]; then
echo "Using ${FOUND_PYTHONPATH} as PYTHONPATH, we found version $INSTALLED_REQUESTS_VERSION of requests, but expected $EXPECTED_REQUESTS"
exit 1
else
echo "Using ${FOUND_PYTHONPATH} as PYTHONPATH, we found version $INSTALLED_REQUESTS_VERSION of requests, which was expected"
fi
fi
38 changes: 35 additions & 3 deletions python-setup/tests/pipenv/python-3.8/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 35 additions & 3 deletions python-setup/tests/pipenv/requests-2/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 36 additions & 6 deletions python-setup/tests/pipenv/requests-3/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

78 changes: 73 additions & 5 deletions python-setup/tests/poetry/python-3.8/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

75 changes: 70 additions & 5 deletions python-setup/tests/poetry/requests-2/poetry.lock
80 changes: 74 additions & 6 deletions python-setup/tests/poetry/requests-3/poetry.lock
2 changes: 1 addition & 1 deletion python-setup/tests/poetry/requests-3/pyproject.toml
@@ -5,7 +5,7 @@ description = ""
authors = ["Your Name <you@example.com>"]

[tool.poetry.dependencies]
python = "^3.5"
python = "^3.6"
requests = "*"

[tool.poetry.dev-dependencies]
@@ -1 +1 @@
requests==1.2.3
requests==2.26.0
@@ -1 +1 @@
requests==1.2.3
requests==2.26.0
@@ -1 +1 @@
requests==1.2.3
requests==2.26.0
2 changes: 1 addition & 1 deletion python-setup/tests/setup_py/requests-2/setup.py
@@ -7,6 +7,6 @@

setup(
name="example-setup.py",
install_requires=["requests==1.2.3"],
install_requires=["requests==2.26.0"],
python_requires=">=2.7, <3",
)
4 changes: 2 additions & 2 deletions python-setup/tests/setup_py/requests-3/setup.py
@@ -7,6 +7,6 @@

setup(
name="example-setup.py",
install_requires=["requests==1.2.3"],
python_requires='>=3.5',
install_requires=["requests==2.26.0"],
python_requires='>=3.7',
)
2 changes: 1 addition & 1 deletion runner/package-lock.json
2 changes: 1 addition & 1 deletion runner/package.json
@@ -1,6 +1,6 @@
{
"name": "codeql-runner",
"version": "1.0.19",
"version": "1.0.20",
"private": true,
"description": "CodeQL runner",
"scripts": {
2 changes: 1 addition & 1 deletion src/defaults.json
@@ -1,3 +1,3 @@
{
"bundleVersion": "codeql-bundle-20211005"
"bundleVersion": "codeql-bundle-20211013"
}

0 comments on commit 04a87f0

Please sign in to comment.