Skip to content

Commit 05f7324

Browse files
committed
ASA-164: Add back raise_for_status
1 parent 14173df commit 05f7324

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.github/workflows/R-check-release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
22
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
33
name: R-CMD-check
4-
on: [push]
4+
on:
5+
push:
6+
paths:
7+
- "R-package/"
8+
- ".github/workflows/R-check-release.yml"
59

610
jobs:
711
R-CMD-check:
8-
runs-on: macOS-latest
12+
runs-on: macos-latest
913
steps:
1014
- name: Check out repository code
1115
uses: actions/checkout@v2

.github/workflows/python-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Python tests
22

3-
on: [push]
3+
on:
4+
push:
5+
paths:
6+
- "python-package/"
7+
- ".github/workflows/python-tests.yml"
48

59
jobs:
610
python:

python-package/itscalledsoccer/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def _single_request(self, url: str, params: Dict[str, List[str]]) -> pd.DataFram
213213
:returns: Dataframe
214214
"""
215215
response = self.session.get(url=url, params=params)
216-
216+
response.raise_for_status()
217217
resp_df = pd.read_json(json.dumps(response.json()))
218218
return resp_df
219219

0 commit comments

Comments
 (0)