6
0

Use apt instead

This commit is contained in:
Jon Michael Aanes 2024-03-30 14:52:51 +01:00
parent d5a5718df1
commit 04151bfeba
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA

View File

@ -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