Skip to content

Commit

Permalink
Set environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
danilopeixoto committed Dec 11, 2021
1 parent 74affd1 commit c323787
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: production
on:
push:
branches:
Expand All @@ -10,6 +10,7 @@ on:
jobs:
lint:
runs-on: ubuntu-latest
environment: production
steps:
- name: setup-python
uses: actions/setup-python@v2
Expand All @@ -25,6 +26,7 @@ jobs:
run: pylint setup.py metastore/
test:
runs-on: ubuntu-latest
environment: production
steps:
- name: setup-python
uses: actions/setup-python@v2
Expand All @@ -37,9 +39,10 @@ jobs:
- name: test-package
run: pytest
- name: check-coverage
run: pytest --cov --cov-fail-under
run: pytest --cov --cov-fail-under 80
build-publish:
runs-on: ubuntu-latest
environment: production
steps:
- name: setup-python
uses: actions/setup-python@v2
Expand All @@ -52,4 +55,7 @@ jobs:
- 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/*

0 comments on commit c323787

Please sign in to comment.