From a1003169ce05835603454b6b1a6af5065e8673ff Mon Sep 17 00:00:00 2001 From: EarningsCall Date: Sat, 1 Jun 2024 09:43:09 -0500 Subject: [PATCH 1/3] Publish to coveralls. --- .github/workflows/test.yml | 6 ++++++ README.md | 3 +-- hatch.toml | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 77e6d78..aa1e4df 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,6 +43,12 @@ jobs: - name: Run tests and track code coverage run: hatch run cov + - if: matrix.python-version == '3.9' && runner.os == 'Linux' + name: Publish Coverage to Coveralls + run: coveralls + env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} run-container-matrix: name: Container matrix on Linux diff --git a/README.md b/README.md index bbff668..eeb19cd 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ pip install --upgrade earningscall # Requirements -* Python 3.8+ (PyPI supported) +* Python 3.8+ ## Get Transcript for a Single Quarter @@ -110,4 +110,3 @@ from earningscall import get_sp500_companies for company in get_sp500_companies(): print(f"{company.company_info} -- {company.company_info.sector} -- {company.company_info.industry}") ``` - diff --git a/hatch.toml b/hatch.toml index a88709d..7cbb240 100644 --- a/hatch.toml +++ b/hatch.toml @@ -3,6 +3,7 @@ dependencies = [ "coverage[toml]>=6.5", "pytest", "responses", + "coveralls", ] [envs.default.scripts] test = "pytest {args:tests}" From 0581e68e985e2732de660c89c01aa03bfbcfabe9 Mon Sep 17 00:00:00 2001 From: EarningsCall Date: Sat, 1 Jun 2024 09:45:23 -0500 Subject: [PATCH 2/3] run through hatch --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aa1e4df..1bf803b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,7 +45,7 @@ jobs: run: hatch run cov - if: matrix.python-version == '3.9' && runner.os == 'Linux' name: Publish Coverage to Coveralls - run: coveralls + run: hatch run coveralls env: # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} From 8010a12f83963c050ba090238657ad1b174229b1 Mon Sep 17 00:00:00 2001 From: EarningsCall Date: Sat, 1 Jun 2024 09:50:15 -0500 Subject: [PATCH 3/3] remove commented code --- .github/workflows/test.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1bf803b..c70756d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,7 +47,6 @@ jobs: name: Publish Coverage to Coveralls run: hatch run coveralls env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} run-container-matrix: