Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shaiu committed Jul 12, 2024
1 parent 024bfbb commit 7588a04
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,35 @@ on:
- master

jobs:
pre-commit:
name: Prepare pre-commit base
runs-on: ubuntu-22.04
steps:
- name: Check out code from GitHub
uses: actions/[email protected]
- name: Set up Python 3.x
id: python
uses: actions/[email protected]
with:
python-version: 3.x
check-latest: true
- name: Create Python virtual environment
run: |
python -m venv venv
. venv/bin/activate
python --version
pip install "$(grep '^uv' < requirements_test.txt)"
uv pip install "$(cat requirements_test.txt | grep pre-commit)"
- name: Install pre-commit dependencies
run: |
. venv/bin/activate
pre-commit install-hooks
lint-ruff-format:
name: Check ruff-format
runs-on: ubuntu-22.04
needs:
- pre-commit
steps:
- name: Check out code from GitHub
uses: actions/[email protected]
Expand All @@ -35,6 +61,8 @@ jobs:
name: Tests

runs-on: ubuntu-latest
needs:
- lint-ruff-format

strategy:
matrix:
Expand All @@ -61,6 +89,8 @@ jobs:
name: Test Coverage

runs-on: ubuntu-latest
needs:
- test

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 7588a04

Please sign in to comment.