Skip to content

Commit

Permalink
Merge pull request #17 from schubergphilis/github-actions
Browse files Browse the repository at this point in the history
Implement GitHub Actions
  • Loading branch information
costastf committed Jun 8, 2021
2 parents 4c80ef1 + 59de7dc commit de2f1de
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 117 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: build

on:
push:
branches: [ 'main' ]
tags: [ '*' ]
pull_request:
branches: [ 'main' ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7.10

- name: Install pipenv
run: pip install pipenv

- name: Lint
run: _CI/scripts/lint.py

- name: Test
run: _CI/scripts/test.py

- name: Build
run: _CI/scripts/build.py

release:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest
environment:
name: release
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7.10

- name: Install pipenv
run: pip install pipenv

- name: Upload
run: _CI/scripts/upload.py

env:
PYPI_UPLOAD_USERNAME: ${{ secrets.PYPI_UPLOAD_USERNAME }}
PYPI_UPLOAD_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASSWORD }}

0 comments on commit de2f1de

Please sign in to comment.