Skip to content

Commit

Permalink
Update and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
areed1192 committed Dec 31, 2021
1 parent 6d66f44 commit 0b45296
Show file tree
Hide file tree
Showing 19 changed files with 466 additions and 532 deletions.
3 changes: 0 additions & 3 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# These are supported funding model platforms

github: [areed1192]
patreon: sigmacoding
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
62 changes: 0 additions & 62 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

7 changes: 4 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install Dependencies from Requirements File.
- name: Install Dependencies from requirements.txt File.
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8.
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
Expand All @@ -39,4 +39,5 @@ jobs:
- name: Test with Unittest.
run: |
if [ -f tests/test_client.py ]; then python -m unittest tests/test_client.py; fi
# If we have a testing folder, then run with unittest.
if [ -f tests/test_clients.py ]; then python -m unittest tests/test_client.py; fi
37 changes: 37 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Publish to TestPyPI
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
run: |
python setup.py sdist bdist_wheel
twine upload --repository testpypi --verbose dist/*
- name: Publish to PyPI
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.pypi_token }}
run: |
python setup.py sdist bdist_wheel
twine upload --verbose dist/*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

## Overview

Current Version: **0.1.1**
Current Version: **0.1.2**

Investors use news articles to gain an idea of market sentiment and hopefully
be able to predict the direction of markets based on the sentiment of these
Expand Down
Loading

0 comments on commit 0b45296

Please sign in to comment.