Skip to content

benchmarks

benchmarks #25

Workflow file for this run

name: benchmarks
on:
workflow_dispatch:
jobs:
tests-cache-packages:
name: Test uv, cache packages (${{ matrix.os }}, Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.12"]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Set up Python with uv (local source)
uses: ./
with:
python-version: ${{ matrix.python-version }}
cache: packages
cache-dependency-path: >-
test_assets/requirements.txt
- name: Check active Python
run: |
echo "Python: $(which python)"
echo "Python version: $(python --version)"
- name: Install dependencies
run: |
uv pip install -r test_assets/requirements.txt
- name: Test some stuff
run: |
python -c "import cloudpathlib; print('cloudpathlib:', cloudpathlib.__version__)"
nbautoexport --version
mkdocs --version
pytest --version
tests-cache-venv:
name: Test uv, cache venv (${{ matrix.os }}, Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.12"]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Set up Python with uv (local source)
uses: ./
with:
python-version: ${{ matrix.python-version }}
cache: venv
cache-dependency-path: >-
test_assets/requirements.txt
- name: Check active Python
run: |
echo "Python: $(which python)"
echo "Python version: $(python --version)"
- name: Install dependencies
run: |
uv pip install -r test_assets/requirements.txt
- name: Test some stuff
run: |
python -c "import cloudpathlib; print('cloudpathlib:', cloudpathlib.__version__)"
nbautoexport --version
mkdocs --version
pytest --version
tests-no-cache:
name: Test uv no cache (${{ matrix.os }}, Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.12"]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Set up Python with uv (local source)
uses: ./
with:
python-version: ${{ matrix.python-version }}
- name: Check active Python
run: |
echo "Python: $(which python)"
echo "Python version: $(python --version)"
- name: Install dependencies
run: |
uv pip install -r test_assets/requirements.txt
- name: Test some stuff
run: |
python -c "import cloudpathlib; print('cloudpathlib:', cloudpathlib.__version__)"
nbautoexport --version
mkdocs --version
pytest --version
tests-pip-cache:
name: Test pip, cache (${{ matrix.os }}, Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.12"]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: >-
test_assets/requirements.txt
- name: Install dependencies
run: |
pip install -r test_assets/requirements.txt
- name: Test some stuff
run: |
python -c "import cloudpathlib; print('cloudpathlib:', cloudpathlib.__version__)"
nbautoexport --version
mkdocs --version
pytest --version
tests-pip-no-cache:
name: Test pip, no cache (${{ matrix.os }}, Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.12"]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r test_assets/requirements.txt
- name: Test some stuff
run: |
python -c "import cloudpathlib; print('cloudpathlib:', cloudpathlib.__version__)"
nbautoexport --version
mkdocs --version
pytest --version