Skip to content

Commit

Permalink
ci: Add uv action
Browse files Browse the repository at this point in the history
A good chunk of time is spent installing packages. UV is blisteringly
fast in this regard.
  • Loading branch information
techman83 committed Dec 1, 2024
1 parent 6da0f0a commit 6a2e2db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/coverage-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ jobs:
with:
python-version: "3.11"
cache: pip
- uses: yezz123/setup-uv@v4
- uses: hashicorp/setup-terraform@v3
with:
terraform_wrapper: false
- name: Export Terraform Path
run: echo "CALLY_TERRAFORM_PATH=$(which terraform)" >> $GITHUB_ENV
- name: Install Provider Pacakges
run: pip install build/**/*.tar.gz
run: uv pip install build/**/*.tar.gz
- name: Install Cally test dependencies
run: pip install .[test]
run: uv pip install .[test]
- name: Run Coverage
run: |
coverage run -m pytest
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test-cally.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ jobs:
with:
python-version: ${{ matrix.python }}
cache: pip
- uses: yezz123/setup-uv@v4
- name: Install Provider Pacakges
run: pip install build/**/*.tar.gz
run: uv pip install build/**/*.tar.gz
- name: Install Cally test dependencies
run: pip install .[test]
run: uv pip install .[test]

# Run Tests
- name: Run Pytest
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ jobs:
with:
python-version: "3.11"
cache: pip
- uses: yezz123/setup-uv@v4
- name: Install Provider Pacakges
run: pip install build/**/*.tar.gz
run: uv pip install build/**/*.tar.gz
- name: Install Cally
run: pip install .
run: uv pip install .

# IDP Install
- uses: actions/checkout@v4
Expand All @@ -41,7 +42,7 @@ jobs:
path: examples
- name: Install ${{ matrix.project }}
working-directory: examples/${{ matrix.project }}
run: pip install .[test]
run: uv pip install .[test]

# Run Tests
- name: Run Pytest for ${{ matrix.project }}
Expand Down

0 comments on commit 6a2e2db

Please sign in to comment.