-
Notifications
You must be signed in to change notification settings - Fork 1
テスト結果ID 440 から 580 の追加 #157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nishimotz
wants to merge
32
commits into
master
Choose a base branch
from
results202405
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
0c2238c
results id 440 to 580
nishimotz e9f06ff
Judgment 修正
nishimotz cdbf311
refactor metadata
nishimotz ca545ab
テストの一覧に結果の件数
nishimotz c26b024
達成基準データ修正
nishimotz b4a4d0b
Merge branch 'master' into results202405
nishimotz 18c2a00
Merge branch 'results202405' of github.com:waic/as_info into results2…
nishimotz f01330d
テスト追加
nishimotz 198cc9b
データの追加と修正
nishimotz 385dea3
check-data の自動実行
nishimotz d76cf17
debug actions
nishimotz 2fc9870
スクリプトを移動
nishimotz 5f67d05
debug actions
nishimotz 2d29e65
file name change
nishimotz 07a9219
job name change
nishimotz 8e13c78
debug actions
nishimotz 9c8f146
PRブランチをチェックアウト
nishimotz 3585956
'SCR': 'client-side-script'
nishimotz 8d5f3f8
WCAG 2.2 SC
nishimotz 6f3e9eb
WCAGへのリンク
nishimotz 2cf7f3c
add 0092-01 to tests.yaml
nishimotz faccafd
C12, C13, C14
nishimotz c72aa23
解説書リンクの並び順を変更
nishimotz 00704be
Update node.js runtime version to 22.x
nishimotz ab45160
id 581-620, 結果の表示順序を逆に
nishimotz 1249518
2024-10-10 テスト結果の追加
nishimotz 7c39793
Update eslint and eslint-config-next versions
nishimotz 1ed1a4d
merge master
nishimotz 0307eff
update package-lock.json
nishimotz 7e86ae0
npm update
nishimotz f920f5c
リンクセクションにWCAG 2.2 テクニック集へのリンクを追加
nishimotz a3f508f
Merge branch 'master' of github.com:waic/as_info into results202405
nishimotz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# /// script | ||
# dependencies = [ | ||
# "PyYAML", | ||
# ] | ||
# /// | ||
import yaml | ||
import sys | ||
|
||
|
||
def detect_missing_tech_ids(tests, techs): | ||
tech_ids_in_tests = set() | ||
for content in tests.values(): | ||
for tech in content["techs"]: | ||
tech_ids_in_tests.add(tech) | ||
tech_ids = set(techs.keys()) | ||
return tech_ids_in_tests - tech_ids | ||
|
||
|
||
def detect_missing_criterion_ids(tests, criteria): | ||
criteria_ids_in_tests = set() | ||
for content in tests.values(): | ||
for criterion in content["criteria"]: | ||
criteria_ids_in_tests.add(criterion) | ||
criteria_ids = set(criteria.keys()) | ||
return criteria_ids_in_tests - criteria_ids | ||
|
||
|
||
def load_yaml(file_path): | ||
try: | ||
with open(file_path, "r") as file: | ||
return yaml.safe_load(file) | ||
except Exception as e: | ||
print(f"Error loading {file_path}: {e}") | ||
sys.exit(1) | ||
|
||
|
||
if __name__ == "__main__": | ||
tests = load_yaml("data/tests.yaml") | ||
techs = load_yaml("data/techs.yaml") | ||
criteria = load_yaml("data/criteria.yaml") | ||
|
||
missing_tech_ids = detect_missing_tech_ids(tests, techs) | ||
if missing_tech_ids: | ||
print(f"missing {missing_tech_ids}") | ||
sys.exit(1) | ||
|
||
missing_criterion_ids = detect_missing_criterion_ids(tests, criteria) | ||
if missing_criterion_ids: | ||
print(f"missing {missing_criterion_ids}") | ||
sys.exit(1) | ||
|
||
sys.exit(0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: checkdata | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [opened, synchronize, reopened, closed] | ||
branches: | ||
- master | ||
|
||
jobs: | ||
checkdata: | ||
if: github.event.pull_request.merged == true || github.event_name == 'push' || github.event_name == 'pull_request' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: プルリクエストの場合、PRブランチをチェックアウト | ||
if: github.event_name == 'pull_request' | ||
run: git checkout ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pyyaml | ||
|
||
- name: Run checkdata.py | ||
run: python3 .github/workflows/checkdata.py | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
runtime: nodejs20 | ||
runtime: nodejs22 | ||
env_variables: | ||
PORT: 8080 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI about 1 month ago
To fix the problem, add a
permissions
block to the workflow file. The minimal required permission for this workflow iscontents: read
, which allows the workflow to check out code but does not grant unnecessary write access. Thepermissions
block should be added at the top level of the workflow (just after thename:
and beforeon:
), so it applies to all jobs unless overridden. No other changes are needed, as the workflow does not appear to require any additional permissions.