chore: upgrade ci #1
Workflow file for this run
This file contains 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
# yaml-language-server: $schema=https://json-schema.org/draft-07/schema# | |
name: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
env: | |
node_version: "18" | |
python_version: "3.10" | |
jobs: | |
test: | |
name: Build documentation | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python runtime | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "${{ env.python_version }}" | |
- name: Install Python dependencies | |
run: | | |
pip install -r requirements.txt | |
- uses: pnpm/action-setup@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "${{ env.node_version }}" | |
cache: pnpm | |
- name: Install Node dependencies | |
run: | | |
pnpm i | |
- name: Lint | |
run: | | |
pnpm lint | |
- name: Build | |
env: | |
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }} | |
ENABLE_MATHJAX: false | |
run: | | |
pnpm build |