-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removing Publish on Dev CI + Added new CI for publishing on Tag
Signed-off-by: Guilherme Bacellar Moralez <guibacellar@gmail.com>
- Loading branch information
1 parent
66a3631
commit 4d229a3
Showing
2 changed files
with
84 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: CI-Deploy | ||
|
||
on: | ||
push: | ||
|
||
paths-ignore: | ||
- '**/*.md' | ||
- '**/docs/*.md' | ||
- '**/.github/workflows/deploy.yml' | ||
- '**/.github/workflows/publish.yml' | ||
|
||
pull_request: | ||
branches: | ||
- develop | ||
- main | ||
|
||
tags: | ||
- * | ||
|
||
paths-ignore: | ||
- '**/*.md' | ||
- '**/docs/*.md' | ||
|
||
jobs: | ||
CodeQuality: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt | ||
- name: Run Code Quality | ||
run: | | ||
tox -e quality | ||
TestsAndCodeCoverage: | ||
runs-on: ubuntu-latest | ||
needs: CodeQuality | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt | ||
- name: Run Unittests and Code Coverage | ||
run: | | ||
tox -e coverage | ||
PublishPypi: | ||
runs-on: ubuntu-latest | ||
needs: TestsAndCodeCoverage | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt | ||
- name: Deployment | ||
env: | ||
PYPI_DEPLOY_TOKEN: ${{ secrets.PYPI_DEPLOY_TOKEN }} | ||
run: | | ||
tox -e deploy |