Update CI preview #187
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: valid | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: pip install scipy numpy | |
- name: "install_nim" | |
id: install_nim | |
uses: iffy/[email protected] | |
- run: nimble install -y | |
- name: GenBook | |
run: nimble genbook | |
- run: echo Commit hash = ${{ github.event.pull_request.head.sha }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: build-${{ github.event.pull_request.head.sha }} | |
path: docs/ | |
retention-days: 1 | |
if-no-files-found: error |