Skip to content

Commit

Permalink
Merge pull request #26 from felipeangelimvieira/develop
Browse files Browse the repository at this point in the history
[FEAT] Trend Model class
  • Loading branch information
felipeangelimvieira authored May 10, 2024
2 parents fa73a51 + ca257f2 commit 5ac9781
Show file tree
Hide file tree
Showing 50 changed files with 2,372 additions and 2,294 deletions.
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "[MNT] [Dependabot]"
include: "scope"
labels:
- "maintenance"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "[MNT] [Dependabot]"
include: "scope"
labels:
- "maintenance"
24 changes: 24 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
changelog:
exclude:
authors:
- octocat
- dependabot
categories:
- title: '🚀 Features'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'fix'
- 'bugfix'
- 'bug'
- title: '🧰 Maintenance'
label:
- 'chore'
- 'maintenance'
- 'refactor'
- 'documentation'
- title: Other Changes
labels:
- "*"
10 changes: 8 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ name: Python CI

on:
push:
branches: [ main ]
branches:
- main
pull_request:
branches: [ main ]
branches:
- main
- develop
- release/*
workflow_dispatch:


jobs:
build:
Expand Down
49 changes: 0 additions & 49 deletions .github/workflows/pre-release.yaml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/release.yaml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Release Workflow

on:
release:
types: [published]

jobs:
verify-and-publish:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Install Poetry
run: pip install poetry

- name: Extract tag version
id: get_tag_version
run: echo "::set-output name=tag_version::${GITHUB_REF#refs/tags/v}"

- name: Get current package version
id: get_package_version
run: echo "::set-output name=package_version::$(poetry version --short)"

- name: Verify versions match
run: |
if [ "${{ steps.get_tag_version.outputs.tag_version }}" != "${{ steps.get_package_version.outputs.package_version }}" ]; then
echo "Error: Tag version does not match the pyproject.toml version"
exit 1
fi
- name: Publish to PyPI
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry build
poetry publish
- name: Create GitHub Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: ${{ contains(github.ref, '-rc') || contains(github.ref, '-alpha') || contains(github.ref, '-beta') }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Personal notebooks

examples/personal
notebooks/*
.vscode/*

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
7 changes: 0 additions & 7 deletions .vscode/settings.json

This file was deleted.

Loading

0 comments on commit 5ac9781

Please sign in to comment.