Add ID to Python setup for proper outputs handling

This commit is contained in:
Christopher C. Wells 2022-06-02 20:19:24 -07:00
parent 3d80eed562
commit 72bdc22dc6
3 changed files with 7 additions and 8 deletions

View File

@ -15,6 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
id: setup-python
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v3

View File

@ -19,18 +19,16 @@ jobs:
matrix:
language: [ 'javascript', 'python' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
id: setup-python
with:
python-version: '3.x'
- uses: actions/cache@v3
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('**/requirements.txt') }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
- uses: github/codeql-action/init@v2
with:
config-file: ./.github/codeql/codeql-config.yml
languages: ${{ matrix.language }}
@ -39,5 +37,4 @@ jobs:
run: |
python -m pip install --upgrade pipenv wheel
pipenv install
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
- uses: github/codeql-action/analyze@v2

View File

@ -10,6 +10,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
id: setup-python
with:
python-version: '3.x'
- uses: actions/cache@v3