Skip to content

Num epochs transf

Num epochs transf #164

Workflow file for this run

name: Publish to PyPI and GitHub release
on:
push:
tags:
- 'v*'
jobs:
python-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel flake8 twine
- name: Check for syntax errors
run: |
flake8 ./deeplc --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Build and publish to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- name: Upload compiled wheels
uses: actions/upload-artifact@v2
with:
name: dist
path: dist/*.whl
windows-installer:
runs-on: windows-latest
needs: python-package
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install . gooey pyinstaller
- name: Install Inno Setup
uses: crazy-max/ghaction-chocolatey@v1
with:
args: install innosetup -y --allow-unofficial --force
- name: Run pyinstaller
run: pyinstaller ./deeplc_pyinstaller.spec --clean --noconfirm
- name: Test built DeepLC exe
run: dist/deeplc/deeplc.exe --ignore-gooey --help
- name: Run Inno Setup
run: ISCC.exe ./deeplc_innosetup.iss /DMyAppVersion=$(python setup.py --version)
- name: Upload installer
uses: actions/upload-artifact@v2
with:
name: dist
path: dist/*.exe
git-release:
runs-on: ubuntu-latest
needs: [python-package, windows-installer]
steps:
- name: Download installer
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Create GitHub Release
uses: docker://antonyurchenko/git-release:v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DRAFT_RELEASE: "false"
PRE_RELEASE: "false"
CHANGELOG_FILE: "CHANGELOG.md"
with:
args: |
dist/*
build-streamlit-image:
runs-on: ubuntu-latest
needs: python-package
steps:
- uses: actions/checkout@v2
- id: latest_release
uses: pozetroninc/github-action-get-latest-release@master
with:
owner: compomics
repo: DeepLC
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push to ghcr.io
uses: docker/build-push-action@v2
with:
context: streamlit
push: true
tags: |
ghcr.io/compomics/deeplc-streamlit:${{ steps.latest_release.outputs.release }}
ghcr.io/compomics/deeplc-streamlit:latest