Unite test and publish
This commit is contained in:
parent
ea76057d89
commit
3cdfd3d7c7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user