Skip to content

Commit

Permalink
ci: migrate from appveyor to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Oct 30, 2023
1 parent 777dbf4 commit 996fd1a
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 119 deletions.
82 changes: 0 additions & 82 deletions .appveyor.yml

This file was deleted.

60 changes: 27 additions & 33 deletions .github/workflows/deploy_github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,55 +8,49 @@ on:
jobs:
build:
name: Create Release
runs-on: macos-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.10"]
os: [macos-latest, windows-latest]
steps:
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
# install our patched version of pyqtgraph
pip install -e .[GUI]
- name: Build app
- name: Build macOS app
if: runner.os == 'macOS'
working-directory: ./build-recipes
run: |
bash ./macos_build_app.sh DCOR-Aid ${{ env.RELEASE_VERSION }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
- name: Build windows executable
if: runner.os == 'windows'
working-directory: ./build-recipes
run: |
pip install -r win_build_requirements.txt
pyinstaller -y --log-level=WARN win_DCOR-Aid.spec
# Run the binary (the most simple test)
dist\\DCOR-Aid\\DCOR-Aid.exe --version
python win_make_iss.py
ISCC.exe /Q win_dckit.iss
- name: Release Assets
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
release_name: DCOR-Aid ${{ github.ref }}
body: |
![](https://img.shields.io/github/downloads/DCOR-dev/DCOR-Aid/${{ env.RELEASE_VERSION }}/total.svg)
name: DCOR-Aid ${{ env.RELEASE_VERSION }}
draft: true
prerelease: false
- name: Upload Release Asset DMG
id: upload-release-asset-dmg
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./build-recipes/dist/DCOR-Aid_${{ env.RELEASE_VERSION }}.dmg
asset_name: DCOR-Aid_${{ env.RELEASE_VERSION }}.dmg
asset_content_type: application/zip
- name: Upload Release Asset PGK
id: upload-release-asset-pkg
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./build-recipes/dist/DCOR-Aid.pkg
asset_name: DCOR-Aid.pkg
asset_content_type: application/zip
body: |
![](https://img.shields.io/github/downloads/DCOR-dev/DCOR-Aid/${{ env.RELEASE_VERSION }}/total.svg)
files: |
./build-recipes/dist/*.dmg
./build-recipes/dist/*.pkg
./build-recipes/Output/*.exe
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
0.13.0
- setup: drop support for Python 3.9
- ci: migrate from appveyor to GitHub Actions
0.12.9
- fix: twisted error message upon SHA-256 upload verification (#73)
- fix: user_show raised unexpected APINotFoundError in wizard
Expand Down
6 changes: 2 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
|DCOR-Aid|
==========

|PyPI Version| |Build Status Unix| |Tests Status Win| |Coverage Status|
|PyPI Version| |Build Status| |Coverage Status|


DCOR-Aid is a GUI for managing data on DCOR (https://dcor.mpl.mpg.de).
Expand Down Expand Up @@ -35,9 +35,7 @@ By default, testing is done with https://dcor-dev.mpl.mpg.de and the user
.. |DCOR-Aid| image:: https://raw.github.com/DCOR-dev/DCOR-Aid/master/dcoraid/img/dcoraid_text.png
.. |PyPI Version| image:: https://img.shields.io/pypi/v/dcoraid.svg
:target: https://pypi.python.org/pypi/DCOR-Aid
.. |Build Status Unix| image:: https://img.shields.io/github/actions/workflow/status/DCOR-dev/DCOR-Aid/check.yml
.. |Build Status| image:: https://img.shields.io/github/actions/workflow/status/DCOR-dev/DCOR-Aid/check.yml
:target: https://github.com/DCOR-dev/DCOR-Aid/actions?query=workflow%3AChecks
.. |Tests Status Win| image:: https://img.shields.io/appveyor/ci/paulmueller/DCOR-Aid/master.svg?label=tests_win
:target: https://ci.appveyor.com/project/paulmueller/DCOR-Aid
.. |Coverage Status| image:: https://img.shields.io/codecov/c/github/DCOR-dev/DCOR-Aid/master.svg
:target: https://codecov.io/gh/DCOR-dev/DCOR-Aid

0 comments on commit 996fd1a

Please sign in to comment.