Skip to content

Commit

Permalink
Add CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danilopeixoto committed Dec 11, 2021
1 parent 86c4bf9 commit 74affd1
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: setup-python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: checkout-main
uses: actions/checkout@v2
- name: install-package
run: pip install -e .[development]
- name: check-format
run: autopep8 --recursive --exit-code --diff setup.py metastore/
- name: check-lint
run: pylint setup.py metastore/
test:
runs-on: ubuntu-latest
steps:
- name: setup-python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: checkout-main
uses: actions/checkout@v2
- name: install-package
run: pip install -e .[development]
- name: test-package
run: pytest
- name: check-coverage
run: pytest --cov --cov-fail-under
build-publish:
runs-on: ubuntu-latest
steps:
- name: setup-python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: checkout-main
uses: actions/checkout@v2
- name: install-package
run: pip install -e .[development]
- name: build-package
run: python setup.py bdist_wheel
- name: publish-package
run: twine upload dist/*

0 comments on commit 74affd1

Please sign in to comment.