Skip to content

configを変更

configを変更 #16

Workflow file for this run

name: verify
on:
push:
branches:
- main # ご自身のリポジトリのデフォルトブランチ名
permissions:
contents: write
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# 🌟 1. 公式アクションで Python 3.11.x の最新安定版を確実にインストール
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
# キャッシュを無効化して、確実にこのステップのPythonパスを通す
update-environment-path: true
# 🌟 2. インストールした Python の実体を使って、確実にその場に仮想環境(venv)を構築
- name: Create and Activate Virtual Environment
run: |
python -m venv venv
echo "$GITHUB_WORKSPACE/venv/bin" >> $GITHUB_PATH
# 🌟 3. 仮想環境内に必要なツールをインストール(これで 100% 3.11 環境に入ります)
- name: Install dependencies
run: |
pip install --upgrade pip
pip install setuptools
pip install online-judge-verify-helper
pip install online-judge-tools
# 🌟 4. テスト(Verify)の実行
- name: Run verification
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
oj-verify run
# 🌟 5. ドキュメント生成とデプロイ
- name: Generate and Deploy Document
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
oj-verify docs