-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #391 from martin-chatterjee/convert-to-github-actions
Convert CI/CD to GitHub actions.
- Loading branch information
Showing
8 changed files
with
115 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Release to PyPi | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
build-and-release: | ||
name: Build and Release | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'mottosso' | ||
|
||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/Qt.py | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.7.x" | ||
- name: Install build dependency | ||
run: python3 -m pip install --upgrade build | ||
- name: Build a binary wheel and a source tarball | ||
run: python3 -m build | ||
- name: Release to PyPi | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
# TODO: Remove with: block before actual release. | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Run Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- "*" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
VFXPLATFORM: "2018" | ||
PYTHON: "2.7" | ||
- os: ubuntu-latest | ||
VFXPLATFORM: "2018" | ||
PYTHON: "3.4" | ||
- os: ubuntu-latest | ||
VFXPLATFORM: "2018" | ||
PYTHON: "3.5" | ||
- os: ubuntu-latest | ||
VFXPLATFORM: "2018" | ||
PYTHON: "3.6" | ||
- os: ubuntu-latest | ||
VFXPLATFORM: "2017" | ||
PYTHON: "2.7" | ||
- os: ubuntu-latest | ||
VFXPLATFORM: "2017" | ||
PYTHON: "3.4" | ||
- os: ubuntu-latest | ||
VFXPLATFORM: "2017" | ||
PYTHON: "3.5" | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run tests in Docker container | ||
run: | | ||
docker run --rm \ | ||
-v $(pwd):/Qt.py \ | ||
-e PYTHON=${{ matrix.PYTHON }} \ | ||
fredrikaverpil/qt.py:${{ matrix.VFXPLATFORM }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,16 +16,28 @@ | |
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.3", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Topic :: Utilities" | ||
] | ||
|
||
DESCRIPTION=( | ||
"Python 2 & 3 compatibility wrapper around all Qt bindings - " | ||
"PySide, PySide2, PyQt4 and PyQt5." | ||
) | ||
ROOT_PATH = os.path.dirname(os.path.realpath(__file__)) | ||
README_PATH = os.path.join(ROOT_PATH, "README.md") | ||
|
||
setup( | ||
name="Qt.py", | ||
version=version, | ||
description="Python 2 & 3 compatibility wrapper around all Qt bindings - " | ||
"PySide, PySide2, PyQt4 and PyQt5.", | ||
description=DESCRIPTION, | ||
long_description=open(README_PATH).read(), | ||
long_description_content_type="text/markdown", | ||
author="Marcus Ottosson", | ||
author_email="[email protected]", | ||
url="https://github.com/mottosso/Qt", | ||
|