From 644bbf5fc8b431428d3ec12e7a28ec218b01b19d Mon Sep 17 00:00:00 2001 From: Asa <26807394+a01sa01to@users.noreply.github.com> Date: Wed, 24 Apr 2024 22:42:56 +0900 Subject: [PATCH] ci: create rime workflow (#2) * ci: create rime workflow * fix rime.yml * ci: cache --- .github/workflows/rime.yml | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/rime.yml diff --git a/.github/workflows/rime.yml b/.github/workflows/rime.yml new file mode 100644 index 0000000..00111cb --- /dev/null +++ b/.github/workflows/rime.yml @@ -0,0 +1,41 @@ +name: Rime +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Enumerate Problems + id: problems + run: | + problems=$(ls -d */ | grep -v _common | tr -d '/') + echo "Problems: $problems" + echo "problems=$problems" >> $GITHUB_OUTPUT + - name: Cache Rime + uses: actions/cache@v4 + with: + path: ./*/rime-out/** + key: rime + - name: Run Tests + run: | + for prob in ${{ steps.problems.outputs.problems }}; do + echo ::group::$prob + rime test $prob + echo ::endgroup:: + done