Skip to content

Commit 6d5f0aa

Browse files
committed
GH Actions: Smaller cleanups
Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
1 parent c8958f9 commit 6d5f0aa

File tree

4 files changed

+32
-36
lines changed

4 files changed

+32
-36
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: Black
4+
name: Check formatting with Black
55

66
on:
77
push:

.github/workflows/pypi-publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: Upload Python package to PyPi (pip)
5+
6+
on:
7+
release:
8+
types: [published]
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.x"
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install setuptools wheel twine
24+
- name: Build and publish
25+
env:
26+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
27+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
28+
run: |
29+
git fetch --all --tags
30+
python setup.py sdist bdist_wheel
31+
twine upload dist/*

.github/workflows/python-publish.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ on:
1212
jobs:
1313
python_version:
1414
runs-on: ubuntu-20.04
15-
env:
16-
# Temporary workaround for Python 3.5 failures - May 2024, see CFE-4395
17-
PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"
1815
strategy:
1916
fail-fast: false
2017
matrix:

0 commit comments

Comments
 (0)