-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (46 loc) · 1.85 KB
/
build-wheels-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build wheels test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
generate_backwards_compatibility_data:
name: Generate Backwards Compatibility Data
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
# Based on https://github.com/TileDB-Inc/conda-forge-nightly-controller/blob/51519a0f8340b32cf737fcb59b76c6a91c42dc47/.github/workflows/activity.yml#L19C10-L19C10
- name: Setup git
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Print Python version
run: |
which python
which pip
python --version
- name: Build Indexes
run: |
# Get the release tag.
# release_tag=$(git describe --tags --abbrev=0)
release_tag="0.0.2"
echo $release_tag
# Install dependencies.
cd apis/python && pip install . && cd ../..
# Generate data.
python backwards-compatibility-data/generate_data.py $release_tag
# Push this data to a new branch and create PR from it..
git fetch
branch_name="update-backwards-compatibility-data-${release_tag}"
echo $branch_name
git checkout -b "$branch_name"
git add backwards-compatibility-data/data/
git commit -m "[automated] Update backwards-compatibility-data for release $release_tag"
git push origin "$branch_name"
gh pr create --base main --head "$branch_name" --title "[automated] Update backwards-compatibility-data for release $release_tag" --body "This PR was created in a Github Actions job during the release process."