Update README.md #1123
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
# GitHub Action | |
name: CI | |
# Run workflow on every push | |
on: | |
push | |
jobs: | |
test: | |
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- "1.6" # Minimum compatible Release | |
- "1.8" # Latest Release | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
arch: | |
- x64 | |
python-version: ["3.9"] | |
# - x86 # FIXME: We don't support x86 because we type-annotate with Int64 and Float64 sparingly | |
exclude: | |
# Test 32-bit only on Linux | |
- os: macOS-latest | |
arch: x86 | |
- os: windows-latest | |
arch: x86 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- run: | | |
git config --global user.name Tester | |
git config --global user.email te@st.er | |
- name: Install spinedb_api | |
run: | |
julia ./.install_spinedb_api.jl | |
env: | |
PYTHON: python | |
- uses: julia-actions/julia-runtest@latest | |
- uses: julia-actions/julia-processcoverage@v1 | |
- uses: codecov/codecov-action@v1 | |
with: | |
file: lcov.info | |
Documenter: | |
name: Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
julia ./.install_spinedb_api.jl | |
julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' | |
- uses: julia-actions/julia-docdeploy@latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} | |