Skip to content

Commit

Permalink
Let's try this
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Mar 31, 2024
1 parent 7c11aad commit ca84ddd
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: CI

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

env:
FORCE_COLOR: "1" # Make tools pretty.

jobs:
check-install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: action

- uses: ./action

- run: uv --version
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
ci:
autoupdate_schedule: monthly

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
26 changes: 26 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Setup uv and handle its cache
description: Downloads and installs the Python uv packaging manager and handles its cache.
author: Hynek Schlawack
branding:
icon: package
color: purple


runs:
using: composite

steps:
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
shell: bash

- name: Find uv cache
run: echo "UV_CACHE=$(uv cache dir)" >>$GITHUB_ENV
shell: bash

- name: Load uv cache
uses: actions/cache@v4
with:
path: ${{ env.UV_CACHE }}
key: ${{ runner.os }}-uv

0 comments on commit ca84ddd

Please sign in to comment.