-
Notifications
You must be signed in to change notification settings - Fork 21
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 #96 from Quantomatic/deploy
Deploy
- Loading branch information
Showing
4 changed files
with
95 additions
and
0 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,32 @@ | ||
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.11 ] | ||
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 }} | ||
- name: Install base package | ||
run: pip install cx_freeze | ||
- name: Deploy | ||
run: | | ||
python deploy.py build | ||
- name: Publish | ||
run: | | ||
ls build | ||
echo "TODO: publish build/zxlive and the related files" |
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: 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 }} | ||
- name: Install dependecies | ||
run: | ||
python -m pip install ".[test]" | ||
- name: Flake8 | ||
continue-on-error: true | ||
run: | ||
pflake8 zxlive | ||
- name: Pylint | ||
continue-on-error: true | ||
run: | ||
pylint zxlive | ||
- name: mypy | ||
continue-on-error: true | ||
run: | ||
mypy zxlive |
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,7 @@ | ||
import sys | ||
from cx_Freeze import setup, Executable | ||
|
||
# base="Win32GUI" should be used only for Windows GUI app | ||
base = "Win32GUI" if sys.platform == "win32" else None | ||
|
||
setup(executables=[Executable("zxlive/__main__.py", base=base, target_name="zxlive")]) |
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