Use the same code for python setup everywhere

This commit is contained in:
Matthias 2022-05-27 20:10:51 +02:00
parent 9dd77858fd
commit ca0cba36c2
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -59,7 +59,7 @@ jobs:
node-version: ${{ env.node_version }}
cache: 'npm'
- run: npm install
- name: Setup Python
- name: Set up Python ${{ env.python_version }}
uses: actions/setup-python@v2
with:
python-version: ${{ env.python_version }}
@ -94,7 +94,7 @@ jobs:
node-version: ${{ env.node_version }}
cache: 'npm'
- run: npm install
- name: Setup Python
- name: Set up Python ${{ env.python_version }}
uses: actions/setup-python@v2
with:
python-version: ${{ env.python_version }}
@ -116,7 +116,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Set up Python ${{ env.python_version }}
uses: actions/setup-python@v2
with:
python-version: ${{ env.python_version }}
cache: 'pip'
- uses: pre-commit/action@v2.0.3
python: