Updated SageMath version to 10.6.beta9 #8
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: Static type check | |
on: | |
merge_group: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
workflow_dispatch: | |
# Allow to run manually | |
concurrency: | |
# Cancel previous runs of this workflow for the same branch | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pyright: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Merge CI fixes from sagemath/sage | |
run: | | |
.ci/merge-fixes.sh | |
env: | |
GH_TOKEN: ${{ github.token }} | |
- name: Cache conda packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/conda_pkgs_dir | |
key: | |
${{ runner.os }}-conda-${{ hashFiles('environment-3.11-linux.yml') }} | |
- name: Setup Conda environment | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
python-version: 3.11 | |
miniforge-version: latest | |
use-mamba: true | |
channels: conda-forge | |
channel-priority: true | |
activate-environment: sage-dev | |
environment-file: environment-3.11-linux.yml | |
# No need to build sagelib; pyright only needs the libraries from which sagelib imports | |
- name: Static code check with pyright | |
uses: jakebailey/[email protected] | |
with: | |
version: 1.1.332 | |
annotate: "errors" | |
env: | |
# To avoid out of memory errors | |
NODE_OPTIONS: --max-old-space-size=8192 |