Bump pymdown-extensions from 10.1 to 10.3.1 #1122
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
name: CI | |
on: [push] | |
env: | |
CHOOSENIM_NO_ANALYTICS: 1 | |
jobs: | |
core: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
nim-version: [1.4.0, stable] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Cache choosenim | |
id: cache-choosenim | |
uses: actions/cache@v1 | |
with: | |
path: ~/.choosenim | |
key: ${{ runner.os }}-choosenim | |
- name: Cache please | |
id: cache-please | |
uses: actions/cache@v1 | |
with: | |
path: ~/.please | |
key: ${{ runner.os }}-please | |
- name: Cache nimble | |
id: cache-nimble | |
uses: actions/cache@v1 | |
with: | |
path: ~/.nimble | |
key: ${{ runner.os }}-nimble | |
- name: Install choosenim / Nim | |
if: steps.cache-choosenim.outputs.cache-hit != 'true' || steps.cache-nimble.outputs.cache-hit != 'true' | |
run: | | |
curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh | |
sh init.sh -y | |
- name: Set nimble path | |
run: echo "$HOME/.nimble/bin" >> $GITHUB_PATH | |
- name: Update choosenim and select version | |
run: | | |
choosenim update self | |
choosenim ${{ matrix.nim-version }} | |
- name: Build project | |
run: ./pleasew --show_all_output build //src/main/... | |
- name: Run package test | |
run: ./scripts/test.sh | |
tsutil: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: src/tsUtil | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Cache node_modules | |
id: cache-node-modules | |
uses: actions/cache@v1 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-npm | |
- name: Install | |
run: npm install | |
- name: Test / Cover | |
run: npm run cover | |
- name: Upload nyc coverage report | |
uses: actions/upload-artifact@v2 | |
with: | |
name: tsUtil-coverage | |
path: | | |
report | |
src/tsUtil/.nyc_output | |
coverage: | |
needs: [core, tsutil] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Download nyc coverage report | |
uses: actions/download-artifact@v2 | |
with: | |
name: tsUtil-coverage | |
- name: Send to codecov | |
run: bash <(curl -s https://codecov.io/bash) | |
documentation: | |
needs: core | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Cache choosenim | |
id: cache-choosenim | |
uses: actions/cache@v1 | |
with: | |
path: ~/.choosenim | |
key: ${{ runner.os }}-choosenim | |
- name: Cache please | |
id: cache-please | |
uses: actions/cache@v1 | |
with: | |
path: ~/.please | |
key: ${{ runner.os }}-please | |
- name: Cache nimble | |
id: cache-nimble | |
uses: actions/cache@v1 | |
with: | |
path: ~/.nimble | |
key: ${{ runner.os }}-nimble | |
- name: Set nimble path | |
run: echo "$HOME/.nimble/bin" >> $GITHUB_PATH | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Generate documentations | |
run: ./pleasew --show_all_output genDocs | |
- name: Deploy | |
if: github.ref == 'refs/heads/devel' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./site |