Speed up from_* and add a quantities filter #3262
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: Full test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/ruff-action@v2 | |
| with: | |
| version: 0.6.2 | |
| src: src | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.12", "3.14"] | |
| pandas-version: ["pandas2", "pandas3"] # TODO: drop pandas2 once 3.x is well-established | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: extractions/setup-just@v3 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync --group test --group networks --no-dev | |
| - name: Install pandas 2.x | |
| if: matrix.pandas-version == 'pandas2' | |
| run: uv run pip install "pandas>=2.0,<3.0" | |
| - name: Install pandas 3.x | |
| if: matrix.pandas-version == 'pandas3' | |
| run: uv run pip install "pandas>=3.0,<4.0" | |
| - name: Show pandas version | |
| run: uv run python -c "import pandas; print(f'pandas {pandas.__version__}')" | |
| - name: Type check | |
| run: just typecheck | |
| - name: Test | |
| run: just test | |
| build-no-networks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: extractions/setup-just@v3 | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: "3.12" | |
| enable-cache: true | |
| - name: Install dependencies (without networks) | |
| run: uv sync --group test --no-dev | |
| - name: Test | |
| run: just test |