Skip to content

Commit

Permalink
Refactor linting and type checking to use action
Browse files Browse the repository at this point in the history
  • Loading branch information
cpaniaguam committed Dec 17, 2024
1 parent aec6970 commit 6f962af
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/linting_and_type_checking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,14 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
$HOME/.cargo/bin/uv --version
- name: Create virtual environment
run: |
$HOME/.cargo/bin/uv venv
source .venv/bin/activate
- name: Install dependencies
run: |
$HOME/.cargo/bin/uv pip install -e '.[dev]'
uses: astral-sh/setup-uv@v4
with:
# Install a specific version of uv.
version: "0.5.9"

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
run: uv pip install -e ".[dev]"

- name: Run mypy
run: mypy src/hssm
Expand Down

0 comments on commit 6f962af

Please sign in to comment.