Skip to content

Commit cf12ace

Browse files
authored
Merge pull request #19 from DP6/release
Added semantic release to generating git tags and release, without make python package and publish on pipy
2 parents 4591f92 + 271a410 commit cf12ace

File tree

8 files changed

+44
-11
lines changed

8 files changed

+44
-11
lines changed

.github/CHANGELOG.md

Whitespace-only changes.

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ updates:
44
- package-ecosystem: 'github-actions'
55
directory: '/'
66
schedule:
7-
interval: 'weekly'
7+
interval: 'monthly'
88

99
# Maintain dependencies for npm
1010
- package-ecosystem: 'pip'
1111
directory: '/megalist_dataflow'
1212
schedule:
13-
interval: 'weekly'
13+
interval: 'monthly'

.github/workflows/codacy-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# For more information on Codacy Analysis CLI in general, see
77
# https://github.com/codacy/codacy-analysis-cli.
88

9-
name: Codacy
9+
name: Codacy Analysis
1010

1111
on: ['push']
1212

.github/workflows/python-app.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
# This workflow will install Python dependencies, run tests and lint with a single version of Python
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: Python testing
4+
name: Python
55

66
on:
77
push:
88
branches: [ develop ]
99
pull_request:
10-
branches: [ main ]
10+
branches: [ main, master ]
1111

1212
jobs:
1313
unit_testing:
14-
14+
name: Test
1515
runs-on: ubuntu-latest
1616

1717
steps:
@@ -27,3 +27,6 @@ jobs:
2727
- name: Run tests
2828
run: |
2929
./run_tests.sh
30+
- name: Upload coverage to Codacy
31+
run: export CODACY_PROJECT_TOKEN=${{ secrets.CODACY_PROJECT_TOKEN }} && bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r megalist_dataflow/*
32+
continue-on-error: true
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Semantic Release
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
7+
jobs:
8+
release:
9+
name: Release
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Python Semantic Release
18+
uses: relekang/python-semantic-release@master
19+
with:
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
21+
pypi_token: ${{ secrets.PYPI_TOKEN }}

.github/workflows/terraform.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: ['push']
44

55
jobs:
66
terraform-actions:
7-
name: Workflow
7+
name: tf validate
88
runs-on: ubuntu-latest
99
defaults:
1010
run:

megalist_dataflow/setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414

1515
import setuptools
1616

17+
__version__ = "1.0.0"
1718
setuptools.setup(
1819
name='megalist_dataflow',
19-
version='0.1',
20-
author='Alvaro Stivi',
21-
author_email='astivi@google.com',
22-
url='https://cse.googlesource.com/solutions/megalist',
20+
version=__version__,
21+
author='DP6 fork from Google/megalista',
22+
author_email='koopas@dp6.com.br',
23+
url='https://github.com/DP6/marketing-data-sync',
2324
install_requires=['googleads==24.1.0', 'google-api-python-client==1.10.0',
2425
'google-cloud-core==1.3.0', 'google-cloud-bigquery==1.26.0',
2526
'google-cloud-datastore==1.13.1', 'aiohttp==3.6.2'],

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[tool.semantic_release]
2+
upload_to_pypi = false
3+
branch = main
4+
version_variable = [
5+
'megalist_dataflow/setup.py:__version__'
6+
]
7+
version_source = tag
8+
build_command = false

0 commit comments

Comments
 (0)