Skip to content
Merged
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
28 changes: 19 additions & 9 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,14 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -mpip install -U wheel flake8 virtualenv
run: python -mpip install -U flake8 virtualenv
- name: Run tests
run: |
flake8
python setup.py build

# https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
publish-pypi:
name: Pypi
if: startsWith(github.ref, 'refs/tags')
build:
needs:
# Only publish if other jobs passed
- test
runs-on: ubuntu-latest
steps:
Expand All @@ -54,11 +50,25 @@ jobs:
fetch-depth: 0
ref: ${{ github.ref }}
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: python -mpip install -U wheel
- name: Build package
run: |
python -mpip install wheel
python setup.py sdist bdist_wheel
run: python setup.py sdist bdist_wheel
- name: Artifact upload
uses: actions/upload-artifact@v4
with:
name: isyntax2raw
path: dist/*.whl
retention-days: 30
- name: Create a GitHubrelease
if: startsWith(github.ref, 'refs/tags')
run: gh release create --generate-notes "${GITHUB_REF#refs/tags/}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[![AppVeyor status](https://ci.appveyor.com/api/projects/status/github/isyntax2raw)](https://ci.appveyor.com/project/gs-jenkins/isyntax2raw)

# iSyntax Converter

Python tool that uses Philips' SDK to write slides in an intermediary raw format.
Expand Down
1 change: 0 additions & 1 deletion setup.cfg

This file was deleted.