Skip to content

Commit

Permalink
ci: Re-enable ci-pyright-fails workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
EdmundGoodman committed Oct 12, 2024
1 parent f62890c commit 484e030
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
# branches:
# - main
branches:
- main
pull_request:

jobs:
Expand All @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10'] #, '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4
Expand Down
31 changes: 17 additions & 14 deletions .github/workflows/ci-pyright-fails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,38 @@ on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- main
# branches:
# - main
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10"] #, "3.11", "3.12"]

env:
PYRIGHT_VERSION: 1.0

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching pip dependencies
cache-dependency-path: |
setup.py
requirements.txt
- name: Install the package locally
run:
pip install -r requirements.txt
enable-cache: true
cache-dependency-glob: "uv.lock"

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install the project
run: uv sync --all-extras

- name: Generate IRDL stubs
run: xdsl-stubgen
run: uv run xdsl-stubgen

- name: Pyright
uses: jakebailey/pyright-action@v2
with:
Expand Down

0 comments on commit 484e030

Please sign in to comment.