dataset-update #64
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
| name: dataset-update | |
| on: | |
| schedule: | |
| - cron: 0 4 * * * | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| checks: write | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| test: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.14" | |
| cache: "pipenv" | |
| - name: Install pipenv | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install pipenv | |
| - name: Install packages | |
| run: pipenv sync --dev | |
| - name: Run pytest | |
| run: pipenv run pytest -q --junit-xml pytest.xml | |
| continue-on-error: true | |
| - name: Publish Test Report | |
| uses: mikepenz/action-junit-report@v5 | |
| if: success() || failure() | |
| with: | |
| report_paths: "pytest.xml" | |
| update-dataset: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.6 | |
| - name: Setup Bun | |
| run: bun install | |
| - name: Update Check Theme | |
| run: bun update "material-icon-theme" | |
| - name: Update Manifest | |
| run: bun run scripts/index.ts | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.14" | |
| - name: Update Dataset | |
| run: python scripts/app/main.py | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| commit-message: Update Dataset | |
| reviewers: DogFortune | |
| delete-branch: true | |
| branch: update/theme | |
| branch-suffix: timestamp | |
| title: Update Dataset |