Skip to content

Commit

Permalink
Move from Travis to Github Actions (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
algojack authored Feb 10, 2022
1 parent 98b8e1f commit 20b2346
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 34 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "Build workflow"
on:
pull_request:
push:
branches:
- master
jobs:
build-test:
runs-on: ubuntu-20.04
container: python:${{ matrix.python }}-slim
strategy:
matrix:
python: ['3.6', '3.7', '3.8', '3.9']
steps:
- run: python3 --version
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install pip dependencies
run: pip install -r requirements.txt
- name: Build and Test
run: |
pytest
mypy pyteal
python3 -c "import pyteal" scripts/generate_init.py --check
black --check .
upload-to-pypi:
runs-on: ubuntu-20.04
needs: ['build-test']
if: ${{ github.event_name == 'push' && contains(github.ref, 'master') && startsWith(github.ref, 'refs/tags') }}
steps:
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install dependencies
run: pip install wheel
- name: Build package
run: python setup.py sdist bdist_wheel
- name: Release
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

1 comment on commit 20b2346

@tzaffi
Copy link
Contributor

@tzaffi tzaffi commented on 20b2346 Feb 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THANK YOU!!!!

Please sign in to comment.