exclude *.tests.* for numpy package #66
8963
This file contains hidden or 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: | |
workflow_dispatch: | |
jobs: | |
typecheck: | |
runs-on: ubuntu-latest | |
steps: | |
# Check out the repository | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# Set up Python 3.12 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
# Install Python dependencies and run tests | |
- name: Install dependencies and run pytest | |
run: | | |
python -m venv .venv | |
source .venv/bin/activate | |
python -m pip install --upgrade pip | |
# Install your dependencies; adjust the following lines as needed | |
pip install -r requirements.txt | |
# Run tests | |
pytest | |
# Set up Node.js (needed for Pyright) | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
# Install Pyright globally using npm | |
- name: Install Pyright | |
run: npm install -g pyright | |
# Run Pyright type checking | |
- name: Run Pyright | |
run: pyright | |
# Run Pyrefly type checking | |
- name: Typecheck with Pyrefly | |
run: .venv/bin/pyrefly check |