Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main into v1 #252

Merged
merged 41 commits into from
Oct 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
8cea215
Install python deps on init
Daverlo Sep 11, 2020
52274f1
Setup python extractor for installed deps
Daverlo Sep 11, 2020
5701037
Add python scripts
Daverlo Sep 11, 2020
7fc41c6
Update python scripts to handle setup.py
RasmusWL Sep 7, 2020
1b20fa7
Handle error in poetry 1.0.10
RasmusWL Sep 7, 2020
4ab5cbc
Merge pull request #173 from github/rasmuswl/update-python-scripts
Daverlo Sep 11, 2020
7795860
Do not always overwrite the GITHUB_REF for PRs
rneatherway Sep 15, 2020
23a1a65
Merge branch 'main' into daverlo/python-v2
Daverlo Sep 23, 2020
1477345
Check platform before installing python tools
Daverlo Sep 23, 2020
3495596
Fix python string
Daverlo Sep 23, 2020
6645c55
Apply suggestions from code review
RasmusWL Sep 24, 2020
dffce99
Minor fixes to python installation scripts based on code review
RasmusWL Sep 24, 2020
5419fcd
Improve warning message
Daverlo Sep 25, 2020
476bf86
Resolve violations of no-throw-literal lint
miqh Sep 25, 2020
1831270
Explain get_extractor_version for python setup scripts
RasmusWL Sep 25, 2020
c68c97e
Resolve violations of no-useless-escape lint
miqh Sep 28, 2020
bcf29b3
Merge pull request #232 from miqh/fix/204
Sep 28, 2020
a2931d3
Merge branch 'main' into fix/205
Sep 28, 2020
2841489
Merge pull request #233 from miqh/fix/205
Sep 28, 2020
67ddca1
Add workflow for testing python setup
Daverlo Sep 29, 2020
5e2245c
Add x permission to the test scripts
Daverlo Sep 29, 2020
4e39b76
Remove tests that should fail
Daverlo Sep 29, 2020
2d6f607
Merge branch 'main' into rneatherway/optional-merge
rneatherway Sep 29, 2020
bb6fa8e
Merge pull request #217 from github/rneatherway/optional-merge
rneatherway Sep 29, 2020
228546a
Resolve violations of sort-imports lint
Sep 29, 2020
d5029a8
Platform specific bundle
marcogario Sep 30, 2020
b9e9339
Merge pull request #240 from github/marcogario/platform-bundle
marcogario Oct 1, 2020
122c9b7
Switching to import/order instead of sort-imports
Oct 1, 2020
10479a2
Merge branch 'main' into cbraynor/fix206
Oct 1, 2020
4ff6c0d
Merge pull request #237 from github/cbraynor/fix206
Oct 1, 2020
7073967
README: document cron fields in example
thaJeztah Oct 1, 2020
4290eab
Bump @actions/core from 1.2.0 to 1.2.6
dependabot[bot] Oct 1, 2020
f49e963
Updating node_modules
Oct 3, 2020
fe8c48e
Merge pull request #243 from github/dependabot/npm_and_yarn/actions/c…
Oct 3, 2020
31e2458
Using standard format from docs
Oct 4, 2020
a89f5ee
Fixing excess whitespace
Oct 4, 2020
319881c
Merge branch 'main' into cron_hint
Oct 4, 2020
1a91a07
Merge pull request #242 from thaJeztah/cron_hint
Oct 4, 2020
4ce302b
Use find in python-des tests
Daverlo Oct 4, 2020
55eb02c
Merge branch 'main' into daverlo/python
Daverlo Oct 5, 2020
a1fc3a5
Merge pull request #155 from github/daverlo/python
Daverlo Oct 5, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@
"import/no-namespace": "off",
"import/no-unresolved": "error",
"import/no-webpack-loader-syntax": "error",
"import/order": ["error", {
"alphabetize": {"order": "asc"},
"newlines-between": "always"
}],
"no-async-foreach/no-async-foreach": "error",
"no-console": "off",
"no-sequences": "error",
"one-var": ["error", "never"],
"sort-imports": ["error", { "allowSeparatedGroups": true }]
"one-var": ["error", "never"]
},
"overrides": [{
// "temporarily downgraded during transition to eslint
Expand All @@ -47,10 +50,7 @@
"func-style": "off",
"github/no-then": "off",
"import/no-extraneous-dependencies": "off",
"no-shadow": "off",
"no-throw-literal": "off",
"no-useless-escape": "off",
"sort-imports": "off"
"no-shadow": "off"
}
}]
}
63 changes: 63 additions & 0 deletions .github/workflows/python-deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Test Python Package Installation

on:
push:
branches: [main, v1]
pull_request:

jobs:

test-setup-python-scripts:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
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: github/codeql-action/init@v1
with:
languages: python

- name: Test Auto Package Installation
run: |
set -x
$GITHUB_WORKSPACE/python-setup/install_tools.sh
echo -e '\n\n\n\n\n' && sleep 0.5
cd $GITHUB_WORKSPACE/${{ matrix.test_dir }}
find /opt/hostedtoolcache/CodeQL -path "*x64/codeql" -exec $GITHUB_WORKSPACE/python-setup/auto_install_packages.py {} \;
- name: Setup for extractor
run: |
echo $CODEQL_PYTHON
# only run if $CODEQL_PYTHON is set
test ! -z $CODEQL_PYTHON && $GITHUB_WORKSPACE/python-setup/tests/from_python_exe.py $CODEQL_PYTHON || /bin/true
- name: Verify packages installed
run: |
${{ matrix.test_script }}
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ on:
push:
pull_request:
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '0 0 * * 0'

jobs:
Expand Down
4 changes: 4 additions & 0 deletions init/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
queries:
description: Comma-separated list of additional queries to run. By default, this overrides the same setting in a configuration file; prefix with "+" to use both sets of queries.
required: false
setup-python-dependencies:
description: Try to auto-install your python dependencies
required: true
default: 'true'
runs:
using: 'node12'
main: '../lib/init-action.js'
21 changes: 11 additions & 10 deletions lib/actions-util.js

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

2 changes: 1 addition & 1 deletion lib/actions-util.js.map

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

Loading