Skip to content

Commit

Permalink
fix: Country names
Browse files Browse the repository at this point in the history
#72 Added unit test to check invalid country names.
Improved symbolscanner github action.
  • Loading branch information
SlashGordon committed Jan 19, 2021
1 parent d4f907e commit 8ff8538
Show file tree
Hide file tree
Showing 5 changed files with 222 additions and 151 deletions.
35 changes: 34 additions & 1 deletion .github/workflows/symbolscanner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,30 @@ jobs:
run: pip install pysymbolscanner
- name: Run scanner
run: pysymbolscanner --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:
Expand All @@ -30,4 +54,13 @@ jobs:
labels: Cron
branch-suffix: timestamp
branch: feature/fix_indices_components
base: master
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ src/pytickersymbols/data/stocks.json
stockswithmetadata.yaml
tools/src/pytickersymbols/data/stocks.json
test-results/test.xml
index_data.pickle
index_data.pickle
stocks2.yaml
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ pytest
pytest-cov
pandas==1.2.0
yfinance==0.1.55
PyYAML==5.3.1
PyYAML==5.3.1
pycountry==20.7.3

0 comments on commit 8ff8538

Please sign in to comment.