Skip to content

Commit c839331

Browse files
committed
curl-adapter always upload tests
1 parent a991565 commit c839331

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
with:
6262
name: Test result
6363
path: report.html
64+
if: ${{ always() }}
6465

6566

6667

moddb/pages/fp.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,14 @@ def __init__(self, html: bs4.BeautifulSoup):
149149
]
150150

151151
try:
152-
#maybe they haven't voted yet and the vote bar is there
152+
# maybe they haven't voted yet and the vote bar is there
153153
self.poll_url = html.find("div", class_="poll").form["action"]
154154
except AttributeError:
155-
#maybe they've already voted and the result link is there
156-
self.poll_url = join(html.find("div", class_="poll").find("a", class_="results")["href"])
157-
155+
# maybe they've already voted and the result link is there
156+
self.poll_url = join(
157+
html.find("div", class_="poll").find("a", class_="results")["href"]
158+
)
159+
158160
self._html = html
159161
self._poll = None
160162

run_lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
black --diff moddb/ tests/ --line-length 100
1+
black --check --diff moddb/ tests/ --line-length 100
22
flakeheaven lint moddb/

0 commit comments

Comments
 (0)