Skip to content

Commit

Permalink
Test GitHub Actions install
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Mar 24, 2024
1 parent a7b251f commit 20fe45f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
runs:
using: "composite"
steps:
# https://github.com/actions/setup-python
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
# https://github.com/yezz123/setup-uv
- name: Setup venv with package dependencies
uses: yezz123/setup-uv@v4
with:
uv-version: "0.1.24"
- name: Setup package dependencies
run: uv venv; uv pip install --system ruff
shell: bash
- name: Check command availability
run: ruff -V
shell: bash
15 changes: 15 additions & 0 deletions .github/workflows/check-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Format

on:
pull_request:

jobs:
format:
name: Check code formatting
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Python
uses: ./.github/actions/setup
- run: ruff format --check

0 comments on commit 20fe45f

Please sign in to comment.