Skip to content

Commit

Permalink
fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
valcanobacon committed Apr 13, 2024
1 parent 963e280 commit e0fa998
Show file tree
Hide file tree
Showing 8 changed files with 3,354 additions and 2,434 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[flake8]
ignore = E501, W503, E722, E203
ignore = E501, W503, E722, E203, E712
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: 3.11

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install '.[tests]'
pip install '.[tests,dev]'
- name: flake8
run: flake8 src tests *.py
run: flake8

build:
runs-on: ubuntu-latest
Expand All @@ -30,15 +30,17 @@ jobs:
- 3.7
- 3.8
- 3.9
- 3.10
- 3.11
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install '.[tests]'
pip install -e '.[tests]'
- name: Test with pytest
run: pytest -vv tests
5 changes: 2 additions & 3 deletions src/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from src.services.feed_service import FeedService

from src.providers.podcast_index_provider import PodcastIndexProvider
from src.services.lightning_service import LightningService
from src.services.lightning_service import client_from as lightning_client_from
from src.services.podcast_index_service import PodcastIndexService

Expand Down Expand Up @@ -34,13 +33,13 @@
"--macaroon",
type=click.Path(exists=True),
help="Path to the Macaroon for LND for access to the LND server",
default="admin.macaroon"
default="admin.macaroon",
)
@click.option(
"--tlscert",
type=click.Path(exists=True),
help="Path of the TLS Certificate for connection to the LND server",
default="tls.cert"
default="tls.cert",
)
@click.pass_context
def cli(ctx, **kwargs):
Expand Down
1,409 changes: 757 additions & 652 deletions src/lnd/lightning_pb2.py

Large diffs are not rendered by default.

4,353 changes: 2,585 additions & 1,768 deletions src/lnd/lightning_pb2_grpc.py

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions src/providers/lightning_provider.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
from dataclasses import dataclass, field
from os import linesep
from typing import Any
from dataclasses import dataclass

import grpc

Expand Down
2 changes: 1 addition & 1 deletion src/services/feed_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def podcast_value(self, feed_url) -> Optional[PodcastValue]:
podcast_liveitems = response.data.find_all(
"podcast:liveitem",
recursive=True,
attrs={"status": "live"}
attrs={"status": "live"},
# "podcast:liveitem", recursive=True,
)
for soup in podcast_liveitems:
Expand Down
1 change: 0 additions & 1 deletion src/services/lightning_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from typing import Any, Generator, Optional
import os

import grpc
from google.protobuf.json_format import MessageToJson

from src.models import BoostInvoice, ValueForValue
Expand Down

0 comments on commit e0fa998

Please sign in to comment.