Skip to content

Commit

Permalink
Merge 073b7f1 into 9091fe0
Browse files Browse the repository at this point in the history
  • Loading branch information
SlashGordon committed Nov 22, 2023
2 parents 9091fe0 + 073b7f1 commit 5cf8a5a
Show file tree
Hide file tree
Showing 19 changed files with 1,573 additions and 594 deletions.
24 changes: 12 additions & 12 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
ignore:
- dependency-name: black
versions:
- 21.4b0
- dependency-name: flake8
versions:
- 3.9.0
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 10
commit-message:
prefix: "chore"
include: "scope"
labels:
- "dependencies"
- "automerge"
rebase-strategy: "disabled"
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,24 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.8]
python: [3.11]

steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get install libcurl4-openssl-dev
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install tox
run: pip install poetry
- name: Run tests
run: tox
run: |
poetry install --no-interaction
poetry run pytest tests/ --junitxml test-results/test.xml --cov src/pysymbolscanner --cov-report term-missing
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1.5
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,24 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.8]
python: [3.11]

steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get install libcurl4-openssl-dev
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install tox
run: pip install poetry
- name: Run tests
run: tox
run: |
poetry install --no-interaction
poetry run pytest tests/ --junitxml test-results/test.xml --cov src/pysymbolscanner --cov-report term-missing
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1.5
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
32 changes: 24 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,30 @@ on:
branches:
- master
jobs:
# Test
release:
if: "!contains(github.event.commits[0].message, '[skip ci]')"
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.8]
python: [3.11]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt-get install libcurl4-openssl-dev
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install tox
run: pip install poetry
- name: Run tests
run: tox
run: |
poetry install --no-interaction
poetry run pytest tests/ --junitxml test-results/test.xml --cov src/pysymbolscanner --cov-report term-missing
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1.5
uses: EnricoMi/publish-unit-test-result-action@v1
if: always()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -33,10 +39,20 @@ jobs:
parallel: true
debug: true
- name: Python Semantic Release
uses: relekang/python-semantic-release@master
id: release
uses: python-semantic-release/python-semantic-release@v8.3.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true'
with:
password: ${{ secrets.PYPI_TOKEN_PP }}
- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
coveralls_finish:
needs: release
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,5 @@ package-lock.json
tests/database_create.sqlite
tests/database_create.sqlite
test-results/test.xml
.vscode/launch.json
src/pystockdb/tools/database_create.sqlite-journal
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This package provides an create, sync and update tool.

At the moment we are only support a few stocks.
If you want to have more, please contribute [pytickersymbols](https://github.com/portfolioplus/pytickersymbols).

Database for stocks this package provides an create, sync and update tool.
## install

```shell
Expand Down

0 comments on commit 5cf8a5a

Please sign in to comment.