Skip to content

Commit

Permalink
Experimenting with automatic deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
boldar99 committed Aug 7, 2023
1 parent a3f6388 commit dc8dc8e
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: deploy

on:
push:
# tags:
# - '*'

env:
SRC_DIR: zxlive

jobs:
build_and_deploy:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [ 3.9 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching pip dependencies
- name: Install base package
run: |
pip install .
pip install nuitka==1.5.4
- name: Deploy
run: |
pyside6-deploy ${{ env.SRC_DIR }}/__main__.py
30 changes: 30 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: test

on:
push:

env:
SRC_DIR: zxlive

jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.9 ]
steps:
- uses: actions/checkout@v3
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching pip dependencies
- name: Install dependecies
run:
python -m pip install pyproject-flake8 pylint
- name: Flake8
run:
pflake8 zxlive
- name: Pylint
run:
pylint zxlive
16 changes: 15 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ dependencies = [

[project.optional-dependencies]
test = [
"PySide6-stubs",
Im "PySide6-stubs @ git+https://github.com/python-qt-tools/PySide6-stubs.git",
"mypy",
"pyproject-flake8",
"pylint",
]

[project.urls]
Expand All @@ -63,3 +65,15 @@ python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disable_error_code = [
# "attr-defined",
# "call-arg",
]

[tool.flake8]
extend-ignore = [
"E731",
"E741",
"E743",
"F811",
]

0 comments on commit dc8dc8e

Please sign in to comment.