6
0

Unite test and publish

This commit is contained in:
Jon Michael Aanes 2024-03-30 15:32:18 +01:00
parent ea76057d89
commit 3cdfd3d7c7
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA

View File

@ -10,7 +10,7 @@ on:
required: true
jobs:
test:
test-and-publish:
runs-on: ubuntu-latest
container:
image: node:21-bookworm
@ -27,20 +27,6 @@ jobs:
run: python3 -m pip install . --break-system-packages
- name: Test Python Code
run: python3 -m pytest test
publish:
runs-on: ubuntu-latest
container:
image: node:21-bookworm
needs: [test]
steps:
- name: Setting up Python ${{ env.PYTHON_VERSION }} for ${{runner.arch}} ${{runner.os}}
run: |
apt-get update
apt-get install -y python3 python3-pip
- name: Installing Python Dependencies
run: python3 -m pip install --upgrade pip setuptools wheel build twine pytest --break-system-packages
- name: Check out repository code
uses: actions/checkout@v3
- name: Build
run: python3 -m build
- name: Publish