Skip to content

Commit

Permalink
wip: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
renan-r-santos committed Apr 4, 2024
1 parent c0f133e commit f7d86cf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install pixi ${{ matrix.pixi-version }}
run: |
export PIXI_VERSION=v${{ matrix.pixi-version }}
curl -fsSL https://pixi.sh/install.sh | bash
- name: Install Pixi ${{ matrix.pixi-version }}
uses: prefix-dev/setup-pixi@v0.5.1
with:
pixi-version: v${{ matrix.pixi-version }}
run-install: false
- name: Install Poetry
run: pipx install poetry==${{ env.poetry-version }}
- name: Install Python ${{ matrix.python-version }}
Expand Down
3 changes: 2 additions & 1 deletion src/pixi_kernel/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import shutil
import subprocess
from pathlib import Path
from typing import Union

import msgspec
from packaging import version
Expand All @@ -15,7 +16,7 @@
logger = logging.getLogger(__name__)


def find_project_manifest() -> str | PixiKernelError:
def find_project_manifest() -> Union[str, PixiKernelError]:
# Ensure pixi is installed
if shutil.which("pixi") is None:
return PixiKernelError(
Expand Down
4 changes: 2 additions & 2 deletions src/pixi_kernel/pixi.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from __future__ import annotations

from typing import List
from typing import List, Optional

import msgspec


class PixiInfo(msgspec.Struct, frozen=True, kw_only=True):
environments_info: List[EnvironmentInfo]
project_info: ProjectInfo | None
project_info: Optional[ProjectInfo]


class EnvironmentInfo(msgspec.Struct, frozen=True, kw_only=True):
Expand Down

0 comments on commit f7d86cf

Please sign in to comment.