Skip to content

Commit

Permalink
ci: migrate from Travis and AppVeyor to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
1138-4EB authored and eine committed Jan 16, 2020
1 parent c6ccaee commit 82bba95
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 91 deletions.
39 changes: 0 additions & 39 deletions .appveyor.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- name: run 'black'
run: tox -e py37-fmt -- --check


lin:
strategy:
fail-fast: false
Expand Down Expand Up @@ -108,3 +109,31 @@ jobs:
run: |
export PATH=$PATH:$(pwd)/../ghdl-v0.36/bin
tox -e py${{ matrix.task }} -- --color=yes
# Deploy to PyPI whenever a release is pushed
# When a package version has not changed a new upload will not be triggered
deploy:
runs-on: ubuntu-latest
needs: [ lin, docker, win ]
if: github.event_name == 'release' && github.event.action == 'created'
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- uses: actions/setup-python@v1
with:
python-version: 3.7
- name: install dependencies
run: |
pip install --upgrade pip
pip install setuptools wheel twine
- name: build and deploy to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASS }}
run: |
python tools/release.py validate
#python setup.py sdist bdist_wheel
#twine upload dist/*
echo "This is a placeholder for deployment to PyPI"
52 changes: 0 additions & 52 deletions .travis.yml

This file was deleted.

0 comments on commit 82bba95

Please sign in to comment.