Skip to content

Upgrade PyQt5 to PyQt6 #111

Upgrade PyQt5 to PyQt6

Upgrade PyQt5 to PyQt6 #111

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: "3.7"
- name: Install flake8
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Linting
run: |
make lint
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
qt-lib: [pyqt5]
include:
- python-version: "3.6"
tox-env: "py36"
- python-version: "3.7"
tox-env: "py37"
- python-version: "3.8"
tox-env: "py38"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install packages
run: |
sudo apt-get install libpulse-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Test with tox
run: |
tox -e ${{ matrix.tox-env }}-${{ matrix.qt-lib }} -- --cov --cov-report=xml --cov-report=term
- name: Upload coverage to Codecov (only for 3.8)
if: matrix.python-version == 3.8
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
yml: ./codecov.yml
fail_ci_if_error: true
build-n-publish:
name: upload to pypi
runs-on: ubuntu-latest
needs: [ checks, build ]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.7"
- name: Install pypa/build
run: >-
python -m
pip install
wheel
--user
- name: Build a binary wheel and a source tarball
run: python setup.py sdist bdist_wheel
# - name: Publish distribution 📦 to Test PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}