Skip to content
Snippets Groups Projects
Commit a2c132e0 authored by James Briggs's avatar James Briggs
Browse files

fix: python version

parent d70fc729
No related branches found
No related tags found
No related merge requests found
...@@ -21,16 +21,17 @@ jobs: ...@@ -21,16 +21,17 @@ jobs:
- "3.11" - "3.11"
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python 3.11 # - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4 # uses: actions/setup-python@v4
with: # with:
python-version: ${{ matrix.python-version }} # python-version: ${{ matrix.python-version }}
- name: Install uv - name: Install uv
run: | run: |
curl -LsSf https://astral.sh/uv/install.sh | sh curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install dependencies - name: Install dependencies
run: | run: |
uv venv --python ${{ matrix.python-version }} uv venv --python ${{ matrix.python-version }}
source .venv/bin/activate
uv pip install .[docs] uv pip install .[docs]
- name: Build docs - name: Build docs
......
...@@ -25,9 +25,6 @@ jobs: ...@@ -25,9 +25,6 @@ jobs:
curl -LsSf https://astral.sh/uv/install.sh | sh curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv --python 3.13 uv venv --python 3.13
uv pip install .[dev] uv pip install .[dev]
with:
cache-key: ${{ runner.os }}-uv-${{ hashFiles('**/uv.lock') }}-${{ matrix.python-version }}
cache-name: uv
- name: Analyzing the code with our lint - name: Analyzing the code with our lint
run: | run: |
make lint make lint
...@@ -9,6 +9,13 @@ jobs: ...@@ -9,6 +9,13 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Cache uv
uses: actions/cache@v4
with:
path: ~/.uv
key: ${{ runner.os }}-uv-${{ hashFiles('**/uv.lock') }}-${{ matrix.python-version }}
restore-keys: |
${{ runner.os }}-uv-${{ matrix.python-version }}
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python - name: Set up Python
run: uv venv --python 3.13 run: uv venv --python 3.13
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment