Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
---
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
# Match pre-commit.ci automated update time.
interval: "weekly"
time: "18:00"
day: "monday"
ignore:
- dependency-name: "python"
commit-message:
prefix: ⬆

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: ⬆
---
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
# Match pre-commit.ci automated update time.
interval: "weekly"
time: "18:00"
day: "monday"
ignore:
- dependency-name: "python"
commit-message:
prefix: ⬆
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: ⬆
96 changes: 48 additions & 48 deletions .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
---
name: Code Checks

on: # yamllint disable-line rule:truthy
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: 5yutan5/[email protected]
with:
python-version: '3.11'
poetry-install--only: dev
poetry-install--no-root: 'true'
poetry-virtualenvs-in-project: 'true'
# Hack to make pre-commit/action to use virtual env pre-commit.
# pre-commit/action installs pre-commit using following command:
# `python -m pip install pre-commit`
# But `python` doesn't run virtual env interpreter when PATH is default.
# Override PATH to use virtual env interpreter.
# This change force run the virtual env pre-commit.
- name: Set Poetry virtual env path to PATH
run: echo ${{ github.workspace }}/.venv/bin >> $GITHUB_PATH
- uses: pre-commit/[email protected]
- uses: pre-commit-ci/[email protected]
if: always()

pyright:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: 5yutan5/[email protected]
with:
python-version: '3.11'
poetry-install--only: main,test
poetry-virtualenvs-in-project: 'true'
- run: poetry run pip install PyQt6
# Pyright uses dependencies of the interpreter run with the `python`.
# But `python` doesn't run virtual env interpreter when PATH is default.
# Override PATH to use virtual env interpreter.
# This change makes pyright use dependencies of virtual env interpreter.
- name: Set Poetry virtual env path to PATH
run: echo ${{ github.workspace }}/.venv/bin >> $GITHUB_PATH
- uses: jakebailey/pyright-action@v1
---
name: Code Checks
on: # yamllint disable-line rule:truthy
pull_request:
push:
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: 5yutan5/[email protected]
with:
python-version: '3.11'
poetry-install--only: dev
poetry-install--no-root: 'true'
poetry-virtualenvs-in-project: 'true'
# Hack to make pre-commit/action to use virtual env pre-commit.
# pre-commit/action installs pre-commit using following command:
# `python -m pip install pre-commit`
# But `python` doesn't run virtual env interpreter when PATH is default.
# Override PATH to use virtual env interpreter.
# This change force run the virtual env pre-commit.
- name: Set Poetry virtual env path to PATH
run: echo ${{ github.workspace }}/.venv/bin >> $GITHUB_PATH
- uses: pre-commit/[email protected]
- uses: pre-commit-ci/[email protected]
if: always()
pyright:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: 5yutan5/[email protected]
with:
python-version: '3.11'
poetry-install--only: main,test
poetry-virtualenvs-in-project: 'true'
- run: poetry run pip install PyQt6
# Pyright uses dependencies of the interpreter run with the `python`.
# But `python` doesn't run virtual env interpreter when PATH is default.
# Override PATH to use virtual env interpreter.
# This change makes pyright use dependencies of virtual env interpreter.
- name: Set Poetry virtual env path to PATH
run: echo ${{ github.workspace }}/.venv/bin >> $GITHUB_PATH
- uses: jakebailey/pyright-action@v1
130 changes: 65 additions & 65 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
---
name: Release

on: # yamllint disable-line rule:truthy
push:
tags:
- 'v*.*.*'

jobs:
Release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: tlambert03/setup-qt-libs@v1
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: snok/install-poetry@v1

- name: Get tag
id: tag
run: echo version=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT

- name: Build project for distribution
run: poetry build

- name: Get wheel file path
id: wheel-file-path
run: echo path=$(ls dist/*.whl) >> $GITHUB_OUTPUT


- name: Test build package
run: |
python -m pip install ${{ steps.wheel-file-path.outputs.path }}
python tools/check_build_package.py \
--tag-version ${{ steps.tag.outputs.version }}
python -m pip uninstall -y pyqtdarktheme

- name: Publish to testPyPI
run: |
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_TOKEN }}
poetry publish -r testpypi

- name: Waite until package is published
run: sleep 120

- name: Test testPyPI package
run: |
pip install -i https://test.pypi.org/simple/ pyqtdarktheme
python tools/check_build_package.py \
--tag-version ${{ steps.tag.outputs.version }}

- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
token: ${{ secrets.GITHUB_TOKEN }}
draft: false

- name: Publish to PyPI
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish
---
name: Release
on: # yamllint disable-line rule:truthy
push:
tags:
- 'v*.*.*'
jobs:
Release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: tlambert03/setup-qt-libs@v1
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: snok/install-poetry@v1
- name: Get tag
id: tag
run: echo version=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT
- name: Build project for distribution
run: poetry build
- name: Get wheel file path
id: wheel-file-path
run: echo path=$(ls dist/*.whl) >> $GITHUB_OUTPUT
- name: Test build package
run: |
python -m pip install ${{ steps.wheel-file-path.outputs.path }}
python tools/check_build_package.py \
--tag-version ${{ steps.tag.outputs.version }}
python -m pip uninstall -y pyqtdarktheme
- name: Publish to testPyPI
run: |
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_TOKEN }}
poetry publish -r testpypi
- name: Waite until package is published
run: sleep 120
- name: Test testPyPI package
run: |
pip install -i https://test.pypi.org/simple/ pyqtdarktheme
python tools/check_build_package.py \
--tag-version ${{ steps.tag.outputs.version }}
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
- name: Publish to PyPI
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish
Loading