Skip to content

Commit

Permalink
ci testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jparismorgan committed Jan 11, 2024
1 parent a3eed69 commit 525cb9e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/build_wheels_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,26 @@ jobs:
which pip
python --version
- name: Determine Release Tag
id: get_release_tag
- name: Build Indexes
run: |
# TODO: test this on a branch with a real tag
# release_tag=$(git describe --tags --abbrev=0)
release_tag="0.0.0"
echo "release_tag" && echo $release_tag
echo "::set-output name=release_tag::$release_tag"
- name: Build Indexes
run: |
echo "pwd" && pwd
echo "ls" && ls
cd apis/python && pip install .
cd apis/python && pip install . & cd ../..
echo "pwd" && pwd
echo "ls" && ls
echo "pip freeze" && pip freeze
echo ${{ steps.get_release_tag.outputs.release_tag }}
python backwards-compatability-data/generate_data.py ${{ steps.get_release_tag.outputs.release_tag }}
echo "pwd" && pwd
echo "ls" && ls
python backwards-compatability-data/generate_data.py $release_tag
echo "pwd" && pwd
echo "ls" && ls
echo "ls backwards-compatability-data" && ls backwards-compatability-data
echo "ls backwards-compatability-data/data" && ls backwards-compatability-data/data
echo "ls backwards-compatability-data/data/0.0.0" && ls backwards-compatability-data/data/0.0.0
- name: Commit and Push to Main Branch
run: |
Expand Down
4 changes: 3 additions & 1 deletion backwards-compatability-data/generate_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ def generate_release_data(version):
data_types = ["float32", "uint8"]
for index_type in index_types:
for data_type in data_types:
index_uri = f"{release_dir}/{index_type.lower()}_{data_type}"
print(f"Creating index at {index_uri}")
index = ingest(
index_type=index_type,
index_uri=f"{release_dir}/{index_type.lower()}_{data_type}",
index_uri=index_uri,
input_vectors=base.astype(data_type),
)

Expand Down

0 comments on commit 525cb9e

Please sign in to comment.