Skip to content

Commit

Permalink
Add development and production environments
Browse files Browse the repository at this point in the history
  • Loading branch information
danilopeixoto committed Dec 26, 2021
1 parent 1e3d9ca commit 4a3bb6a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 24 deletions.
27 changes: 4 additions & 23 deletions .github/workflows/main.yaml → .github/workflows/development.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: production
name: development
on:
push:
branches:
Expand All @@ -10,7 +10,7 @@ on:
jobs:
lint:
runs-on: ubuntu-latest
environment: production
environment: development
steps:
- name: setup-python
uses: actions/setup-python@v2
Expand All @@ -26,7 +26,7 @@ jobs:
run: pylint setup.py metastore/ tests/
test:
runs-on: ubuntu-latest
environment: production
environment: development
steps:
- name: setup-python
uses: actions/setup-python@v2
Expand All @@ -42,7 +42,7 @@ jobs:
run: pytest --cov --cov-fail-under 80
test-documentation:
runs-on: ubuntu-latest
environment: production
environment: development
steps:
- name: setup-python
uses: actions/setup-python@v2
Expand All @@ -54,22 +54,3 @@ jobs:
run: pip install -e .[development]
- name: test-generate-build
run: cd docs && sphinx-build -b html metastore/ build/
build-publish:
runs-on: ubuntu-latest
environment: production
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
env:
TWINE_USERNAME: ${{ secrets.REPOSITORY_USERNAME }}
TWINE_PASSWORD: ${{ secrets.REPOSITORY_PASSWORD }}
run: twine upload dist/*
26 changes: 26 additions & 0 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: production
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
build-publish:
runs-on: ubuntu-latest
environment: production
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
env:
TWINE_USERNAME: ${{ secrets.REPOSITORY_USERNAME }}
TWINE_PASSWORD: ${{ secrets.REPOSITORY_PASSWORD }}
run: twine upload dist/*
2 changes: 1 addition & 1 deletion metastore/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
__title__ = 'Metastore'

#: Package version.
__version__ = '1.0.0.dev20'
__version__ = '1.0.0.dev21'

#: Package description.
__description__ = 'Metastore Python SDK. Feature store and data catalog for machine learning.'
Expand Down

0 comments on commit 4a3bb6a

Please sign in to comment.