-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #451 from datacoves/DCV-2450-fix-dbt-coves-psycopg…
…-installation Fix pyyaml_include, pg binaries, pip install test
- Loading branch information
Showing
4 changed files
with
1,105 additions
and
973 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Test pip install | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: PIP Install | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Poetry | ||
run: pipx install poetry | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
cache: "poetry" | ||
|
||
- name: run Pre-Commit | ||
uses: pre-commit/[email protected] | ||
|
||
- name: Build dbt-coves using Poetry | ||
run: | | ||
poetry build | ||
- name: Discover .whl file | ||
id: discover_whl | ||
run: | | ||
ls dist/*.whl | grep -E "dbt_coves-[0-9]+\.[0-9]+\.[0-9]+-py3-none-any\.whl" | head -n 1 > whl_file.txt | ||
- name: Extract .whl file name | ||
id: extract_whl_name | ||
run: | | ||
WHL_FILE=$(cat whl_file.txt) | ||
echo "::set-output name=whl_file::$WHL_FILE" | ||
- name: pip install dbt-coves | ||
run: | | ||
WHL_FILE_PATH=${{ steps.extract_whl_name.outputs.whl_file }} | ||
pip install $WHL_FILE_PATH |
Oops, something went wrong.