Skip to content

Commit

Permalink
test: update cache version and expected (#204)
Browse files Browse the repository at this point in the history
GitHub: fix GH-203

Because maybe GitHub Actions cache be corrupted.

Following tests are fail because available datasets have been updated.

* Bill, in-House group, member and question of the House of Councillors
of Japan
* Rdataset
* Sudachi synonym dictionary
  • Loading branch information
tikkss authored Aug 31, 2024
1 parent 01295a1 commit 8045b11
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: ${{ matrix.runs-on }}
env:
# We can invalidate the current cache by updating this.
CACHE_VERSION: "2022-08-27"
CACHE_VERSION: "2024-09-01"
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
Expand Down
24 changes: 12 additions & 12 deletions test/test-house-of-councillor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ def record(*args)
record(Date.parse("2024-01-26"),
"自由民主党",
"自民",
Date.parse("2024-07-08"),
115,
24,
Date.parse("2024-08-30"),
114,
23,
Date.parse("2025-07-28"),
19,
5,
Expand All @@ -128,14 +128,14 @@ def record(*args)
Date.parse("2028-07-25"),
18,
5,
45,
8,
63,
13),
44,
7,
62,
12),
record(Date.parse("2024-01-26"),
"各派に属しない議員",
"無所属",
Date.parse("2024-07-08"),
Date.parse("2024-08-30"),
12,
4,
Date.parse("2025-07-28"),
Expand Down Expand Up @@ -173,7 +173,7 @@ def record(*args)
test("#each") do
records = @dataset.each.to_a
assert_equal([
246,
245,
record("足立 敏之",
nil,
"https://www.sangiin.go.jp/japanese/joho1/kousei/giin/profile/7016001.htm",
Expand All @@ -185,7 +185,7 @@ def record(*args)
[2016, 2022],
2,
"財政金融委員会(長)",
Date.parse("2024-07-08"),
Date.parse("2024-08-30"),
"昭和29年5月20日兵庫県西宮市生まれ。(本籍地・京都府福知山市)昭和48年和歌山県立桐蔭高等学校卒業、昭和52年京都大学工学部土木工学科卒業、昭和54年京都大学大学院工学研究科修士課程修了、同年建設省入省後、兵庫県庁、東北及び関東地方整備局、河川局河川計画課河川事業調整官、内閣官房(安全保障・危機管理担当)等を経て、平成15年近畿地方整備局企画部長、平成18年河川局河川計画課長、平成21年四国地方整備局長、平成23年中部地方整備局長、平成24年水管理・国土保全局長、平成25年技監、平成26年国土交通省を退職。平成28年第24回参議院議員通常選挙で初当選○参議院予算委員会理事、災害対策特別委員会理事○著書「激甚化する水害」「いいね!建設産業本当の魅力」(日経BP社)",
Date.parse("2022-11-30")),
record("渡辺 猛之",
Expand All @@ -199,7 +199,7 @@ def record(*args)
[2010, 2016, 2022],
3,
"経済産業委員会、議院運営委員会(理)",
Date.parse("2024-07-08"),
Date.parse("2024-08-30"),
"昭和43年4月18日生、岐阜県加茂郡八百津町出身。岐阜県立加茂高等学校、名古屋大学経済学部卒業。平成4年、財団法人松下政経塾入塾(第13期生)。平成7年、同塾卒業後、26歳で岐阜県議会議員に初当選。以後通算4期当選。在任中は、自民党岐阜県連副幹事長、岐阜県商工会青年部連合会会長、岐阜県商工政治連盟会長、県監査委員、県政自民クラブ幹事長を歴任。平成22年7月、参議院議員初当選○農林水産委員長、政治倫理の確立及び選挙制度に関する特別委員長、参議院自民党筆頭副幹事長、国土交通副大臣兼内閣府副大臣兼復興副大臣を歴任○現在議院運営委員会筆頭理事。環境委員",
Date.parse("2022-11-30")),
],
Expand Down Expand Up @@ -244,7 +244,7 @@ def record(*args)
"小西 洋之",
1,
"https://www.sangiin.go.jp/japanese/joho1/kousei/syuisyo/213/syuh/s213239.htm",
nil,
"https://www.sangiin.go.jp/japanese/joho1/kousei/syuisyo/213/touh/t213239.htm",
"https://www.sangiin.go.jp/japanese/joho1/kousei/syuisyo/213/syup/s213239.pdf",
"https://www.sangiin.go.jp/japanese/joho1/kousei/syuisyo/213/toup/t213239.pdf",
"https://www.sangiin.go.jp/japanese/joho1/kousei/syuisyo/213/meisai/m213239.htm",
Expand Down
2 changes: 1 addition & 1 deletion test/test-rdataset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def setup
test("without package_name") do
records = @dataset.each.to_a
assert_equal([
2293,
2337,
{
package: "AER",
dataset: "Affairs",
Expand Down
8 changes: 4 additions & 4 deletions test/test-sudachi-synonym-dictionary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def setup
test('#each') do
records = @dataset.each.to_a
assert_equal([
67725,
67753,
{
group_id: "000001",
is_noun: true,
Expand All @@ -19,15 +19,15 @@ def setup
notation: "曖昧",
},
{
group_id: "026057",
group_id: "026068",
is_noun: true,
expansion_type: :always,
lexeme_id: 1,
form_type: :typical,
acronym_type: :others,
variant_type: :typical,
categories: ["商品"],
notation: "マイクラ",
categories: ["IT"],
notation: "サ終",
},
],
[
Expand Down

0 comments on commit 8045b11

Please sign in to comment.