Use apt instead
This commit is contained in:
parent
d5a5718df1
commit
04151bfeba
|
@ -1,8 +1,5 @@
|
||||||
name: Python Package
|
name: Python Package
|
||||||
|
|
||||||
env:
|
|
||||||
PYTHON_VERSION: 3.11
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -19,9 +16,9 @@ jobs:
|
||||||
image: node:21-bookworm
|
image: node:21-bookworm
|
||||||
steps:
|
steps:
|
||||||
- name: Setting up Python ${{ env.PYTHON_VERSION }} for ${{runner.arch}} ${{runner.os}}
|
- name: Setting up Python ${{ env.PYTHON_VERSION }} for ${{runner.arch}} ${{runner.os}}
|
||||||
uses: actions/setup-python@v5
|
- run: |
|
||||||
with:
|
apt-get update
|
||||||
python-version: ${{ env.PYTHON_VERSION }}
|
apt-get install -y python3 python3-pip
|
||||||
- name: Installing Python Dependencies
|
- name: Installing Python Dependencies
|
||||||
run: python3 -m pip install --upgrade pip setuptools wheel build twine pytest
|
run: python3 -m pip install --upgrade pip setuptools wheel build twine pytest
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
|
@ -37,9 +34,9 @@ jobs:
|
||||||
needs: [test]
|
needs: [test]
|
||||||
steps:
|
steps:
|
||||||
- name: Setting up Python ${{ env.PYTHON_VERSION }} for ${{runner.arch}} ${{runner.os}}
|
- name: Setting up Python ${{ env.PYTHON_VERSION }} for ${{runner.arch}} ${{runner.os}}
|
||||||
uses: actions/setup-python@v5
|
- run: |
|
||||||
with:
|
apt-get update
|
||||||
python-version: ${{ env.PYTHON_VERSION }}
|
apt-get install -y python3 python3-pip
|
||||||
- name: Installing Python Dependencies
|
- name: Installing Python Dependencies
|
||||||
run: python3 -m pip install --upgrade pip setuptools wheel build twine pytest
|
run: python3 -m pip install --upgrade pip setuptools wheel build twine pytest
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
|
|
Loading…
Reference in New Issue
Block a user