Skip to content

Commit

Permalink
added new workflow [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
SlashGordon committed Jul 12, 2021
1 parent 5a1c3c9 commit bd675cc
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/symbolscannersymbols.yml
@@ -0,0 +1,68 @@
name: SymbolscannerSymbols

on:
schedule:
- cron: '0 5 * * *'
workflow_dispatch:
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get install libcurl4-openssl-dev
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: pip install wheel
- name: Install dependencies
run: pip install pysymbolscanner
- name: Run scanner
run: pysymbolscanner --symbols --input stocks.yaml --output stocks.yaml
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: pip install tox
- name: Run tests
run: |
tox
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true
debug: true
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1.5
if: always()
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
files: test-results/**/*.xml
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true
debug: true
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: 'fix: added symbols to stocks'
title: 'fix: added symbols to stocks'
body: |
Auto-generated PR by pysymbolscanner
labels: Cron
branch-suffix: timestamp
branch: feature/add_symbols_components
base: master
coveralls_finish:
needs: scan
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true
debug: true

0 comments on commit bd675cc

Please sign in to comment.