Skip to content

Commit

Permalink
Removing Publish on Dev CI + Added new CI for publishing on Tag
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Bacellar Moralez <guibacellar@gmail.com>
  • Loading branch information
guibacellar committed Aug 22, 2023
1 parent 66a3631 commit 4d229a3
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/cy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,3 @@ jobs:
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
84 changes: 84 additions & 0 deletions .github/workflows/cy_deploy.yml
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

0 comments on commit 4d229a3

Please sign in to comment.