up #61
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: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Julia | |
uses: julia-actions/setup-julia@v1 | |
with: | |
version: '1.10' | |
- name: Install dependencies | |
run: julia -e 'using Pkg; Pkg.instantiate()' | |
working-directory: ./ # 设置为项目根目录 | |
- name: Install RegistryCI | |
run: julia -e 'using Pkg; Pkg.add("RegistryCI")' | |
- name: Run tests | |
run: julia -e 'using Pkg; Pkg.activate("."); Pkg.test()' | |
working-directory: ./ # 设置为项目根目录 | |
- name: Check compatibility bounds | |
run: julia -e 'using Pkg; Pkg.update()' | |