Skip to content

Commit

Permalink
Removed build from ci and edited ci to install dependencies before ru…
Browse files Browse the repository at this point in the history
…nning jobs
  • Loading branch information
wleong1 committed Mar 7, 2024
1 parent 35cba4f commit fc36e34
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 21 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,6 @@ on:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Install dependencies
run: |
pip install -r requirements.txt
deploy:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -56,7 +40,7 @@ jobs:
- name: Install Dependencies
run: |
pip install mypy
mypy --install-types
mypy src --install-types
- name: mypy
run: |
mypy src/
Expand All @@ -73,7 +57,7 @@ jobs:
python-version: 3.x
- name: Install Dependencies
run: |
pip install pylint
pip install pylint requests pandas
- name: pylint
run: |
pylint src/
Expand All @@ -90,7 +74,7 @@ jobs:
python-version: 3.x
- name: Install Dependencies
run: |
pip install pytest
pip install pytest requests pandas
- name: pytest
run: |
pytest tests/
2 changes: 1 addition & 1 deletion src/live_price_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import yfinance as yf # type: ignore[import-untyped] # pylint: disable=E0401
import pandas as pd

from src.parameters import ALPHA_VANTAGE_API_KEY # type: ignore[import-not-found] # pylint: disable=E0611
from src.parameters import ALPHA_VANTAGE_API_KEY # type: ignore[import-not-found] # pylint: disable=E0401, E0611

ALPHA_VANTAGE_ENDPOINT = "https://www.alphavantage.co/query"

Expand Down
2 changes: 1 addition & 1 deletion src/news_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import requests

from src.parameters import NEWS_API_KEY # type: ignore[import-untyped] # pylint: disable=E0611
from src.parameters import NEWS_API_KEY # type: ignore[import-untyped] # pylint: disable=E0401, E0611

NEWS_ENDPOINT = "https://newsapi.org/v2/everything"

Expand Down

0 comments on commit fc36e34

Please sign in to comment.