Skip to content

Commit

Permalink
Merge pull request #19 from dynobo/refactoring
Browse files Browse the repository at this point in the history
Fix build pipeline
  • Loading branch information
dynobo committed Apr 3, 2021
2 parents 351bae2 + b5fabc9 commit 8eb06d4
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 15 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,9 @@ jobs:
run: poetry run coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
- name: Build and publish to PyPi-Test
run: |
poetry config repositories.pypi-test https://test.pypi.org/legacy/
poetry publish \
--build \
--repository=pypi-test \
--username __token__ \
--password ${{ secrets.PYPI_TEST_KEYHINT_TOKEN }}
# Prepare Release
- name: Build AppImage
run: poetry run make clean-build

# Release
- name: Draft release
uses: softprops/action-gh-release@v1
with:
Expand All @@ -55,3 +46,12 @@ jobs:
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Publish to pypi-test
- name: Build and publish to PyPi-Test
run: |
poetry config repositories.pypi-test https://test.pypi.org/legacy/
poetry publish \
--build \
--repository=pypi-test \
--username __token__ \
--password ${{ secrets.PYPI_TEST_KEYHINT_TOKEN }}
2 changes: 0 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ on:
push:
tags:
- "v*.*.*"
branches:
- master
jobs:
publish:
name: Publish to PyPi
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Test
on: [push, pull_request]
on: [pull_request]

jobs:
test_linux:
Expand Down
29 changes: 28 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ black = { version = "^20.8b1", allow-prereleases = true }
pytest-cov = "^2.11.1"
pre-commit = "^2.11.1"
coveralls = "^3.0.1"
bumpversion = "^0.6.0"


[tool.isort]
Expand Down
11 changes: 10 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,13 @@ files = src
follow_imports = skip

[mypy-gi.*,setproctitle]
ignore_missing_imports = True
ignore_missing_imports = True

[bumpversion]
current_version = 0.2.0
commit = True
tag = False

[bumpversion:file:pyproject.toml]

[bumpversion:file:./src/keyhint/resources/ApplicationWindow.glade]

0 comments on commit 8eb06d4

Please sign in to comment.