6
0
This commit is contained in:
Jon Michael Aanes 2024-03-30 13:58:29 +01:00
parent c1e5f6a8a0
commit 30609363c9
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA

View File

@ -16,32 +16,32 @@ jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Setting up Python ${{ PYTHON_VERSION }} - name: Setting up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: ${{ PYTHON_VERSION }} python-version: ${{ env.PYTHON_VERSION }}
- name: Installing Python Dependencies - name: Installing Python Dependencies
run: python -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
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Installing package - name: Installing package
run: python -m pip install . run: python3 -m pip install .
- name: Test Python Code - name: Test Python Code
run: python -m pytest test run: python3 -m pytest test
publish: publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [test] needs: [test]
steps: steps:
- name: Setting up Python ${{ PYTHON_VERSION }} - name: Setting up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: ${{ PYTHON_VERSION }} python-version: ${{ env.PYTHON_VERSION }}
- name: Installing Python Dependencies - name: Installing Python Dependencies
run: python -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
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Build - name: Build
run: python -m build run: python3 -m build
- name: Publish - name: Publish
run: python -m twine upload --repository-url "https://gitfub.space/api/packages/${{ secrets.PIPY_REPO_USER }}/pypi" -u ${{ secrets.PIPY_REPO_USER }} -p ${{ secrets.PIPY_REPO_PASS }} dist/* run: python3 -m twine upload --repository-url "https://gitfub.space/api/packages/${{ secrets.PIPY_REPO_USER }}/pypi" -u ${{ secrets.PIPY_REPO_USER }} -p ${{ secrets.PIPY_REPO_PASS }} dist/*