Skip to content

Commit 4c5a1d4

Browse files
committed
test
1 parent 5970202 commit 4c5a1d4

1 file changed

Lines changed: 105 additions & 107 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 105 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -25,64 +25,64 @@ jobs:
2525
- run: pip install -e .
2626
- run: py.test
2727

28-
source-distribution:
29-
if: startsWith(github.ref, 'refs/tags/')
30-
name: Source distribution
31-
runs-on: ubuntu-latest
32-
needs: [test]
33-
strategy:
34-
matrix:
35-
python-version: [ '3.10' ]
36-
steps:
37-
- uses: actions/checkout@v3
38-
39-
- name: Build sdist
40-
run: python3 setup.py sdist
41-
42-
- name: Upload source to Github
43-
uses: actions/upload-artifact@v2
44-
with:
45-
name: source
46-
path: ./dist/amazon.ion-*.tar.gz
47-
48-
- uses: aws-actions/configure-aws-credentials@v1
49-
with:
50-
role-skip-session-tagging: true
51-
aws-region: us-west-2
52-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
53-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
54-
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
55-
role-external-id: ${{ secrets.AWS_ROLE_EXTERNAL_ID }}
56-
role-duration-seconds: 900
57-
58-
- name: Upload source to s3
59-
run: |
60-
zip ion-python-source ./dist/amazon.ion-*.tar.gz
61-
aws s3 mv ion-python-source.zip ${{ secrets.AWS_SOURCE_BUCKET_URL }} --acl bucket-owner-full-control
62-
63-
- name: Install the released source from PYPI
64-
run: |
65-
sleep 300s
66-
67-
for (( i=0; i<3; i++ ))
68-
do
69-
v=""
70-
71-
if ! (pip install --no-binary :all: amazon.ion==${GITHUB_REF##*/v}) then
72-
echo "Unable to install the desired version"
73-
sleep 120s
74-
continue
75-
fi
76-
77-
v=$( pip show amazon.ion | grep Version )
78-
break
79-
done
80-
81-
if [[ $v != "Version: ${GITHUB_REF##*/v}" ]]
82-
then
83-
echo "Exiting because unable to install the new version from PYPI"
84-
exit 1
85-
fi
28+
# source-distribution:
29+
# if: startsWith(github.ref, 'refs/tags/')
30+
# name: Source distribution
31+
# runs-on: ubuntu-latest
32+
# needs: [test]
33+
# strategy:
34+
# matrix:
35+
# python-version: [ '3.10' ]
36+
# steps:
37+
# - uses: actions/checkout@v3
38+
#
39+
# - name: Build sdist
40+
# run: python3 setup.py sdist
41+
#
42+
# - name: Upload source to Github
43+
# uses: actions/upload-artifact@v2
44+
# with:
45+
# name: source
46+
# path: ./dist/amazon.ion-*.tar.gz
47+
#
48+
# - uses: aws-actions/configure-aws-credentials@v1
49+
# with:
50+
# role-skip-session-tagging: true
51+
# aws-region: us-west-2
52+
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
53+
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
54+
# role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
55+
# role-external-id: ${{ secrets.AWS_ROLE_EXTERNAL_ID }}
56+
# role-duration-seconds: 900
57+
#
58+
# - name: Upload source to s3
59+
# run: |
60+
# zip ion-python-source ./dist/amazon.ion-*.tar.gz
61+
# aws s3 mv ion-python-source.zip ${{ secrets.AWS_SOURCE_BUCKET_URL }} --acl bucket-owner-full-control
62+
#
63+
# - name: Install the released source from PYPI
64+
# run: |
65+
# sleep 300s
66+
#
67+
# for (( i=0; i<3; i++ ))
68+
# do
69+
# v=""
70+
#
71+
# if ! (pip install --no-binary :all: amazon.ion==${GITHUB_REF##*/v}) then
72+
# echo "Unable to install the desired version"
73+
# sleep 120s
74+
# continue
75+
# fi
76+
#
77+
# v=$( pip show amazon.ion | grep Version )
78+
# break
79+
# done
80+
#
81+
# if [[ $v != "Version: ${GITHUB_REF##*/v}" ]]
82+
# then
83+
# echo "Exiting because unable to install the new version from PYPI"
84+
# exit 1
85+
# fi
8686

8787
build-wheels:
8888
name: Build wheels on ${{ matrix.os }}
@@ -109,8 +109,6 @@ jobs:
109109

110110
- name: Set up Python 3.10
111111
uses: actions/setup-python@v2
112-
with:
113-
python-version: '3.10'
114112

115113
- name: Set up pip and setuptools
116114
run: |
@@ -138,50 +136,50 @@ jobs:
138136
name: wheels
139137
path: ./wheelhouse/*.whl
140138

141-
upload-wheels:
142-
name: Upload wheels to S3
143-
runs-on: [ubuntu-latest]
144-
needs: [build-wheels]
145-
steps:
146-
- uses: actions/download-artifact@v2
147-
with:
148-
name: wheels
149-
150-
- uses: aws-actions/configure-aws-credentials@v1
151-
with:
152-
role-skip-session-tagging: true
153-
aws-region: us-west-2
154-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
155-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
156-
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
157-
role-external-id: ${{ secrets.AWS_ROLE_EXTERNAL_ID }}
158-
role-duration-seconds: 900
159-
160-
- name: Upload wheels to s3
161-
run: |
162-
zip ion-python-wheels ./*.whl
163-
aws s3 mv ion-python-wheels.zip ${{ secrets.AWS_WHEELS_BUCKET_URL }} --acl bucket-owner-full-control
164-
165-
- name: Install the released wheels from PYPI
166-
run: |
167-
sleep 300s
168-
169-
for (( i=0; i<3; i++ ))
170-
do
171-
v=""
172-
173-
if ! (pip install --only-binary :all: amazon.ion==${GITHUB_REF##*/v}) then
174-
echo "Unable to install the desired version"
175-
sleep 120s
176-
continue
177-
fi
178-
179-
v=$( pip show amazon.ion | grep Version )
180-
break
181-
done
182-
183-
if [[ $v != "Version: ${GITHUB_REF##*/v}" ]]
184-
then
185-
echo "Exiting because unable to install the new version from PYPI"
186-
exit 1
187-
fi
139+
# upload-wheels:
140+
# name: Upload wheels to S3
141+
# runs-on: [ubuntu-latest]
142+
# needs: [build-wheels]
143+
# steps:
144+
# - uses: actions/download-artifact@v2
145+
# with:
146+
# name: wheels
147+
#
148+
# - uses: aws-actions/configure-aws-credentials@v1
149+
# with:
150+
# role-skip-session-tagging: true
151+
# aws-region: us-west-2
152+
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
153+
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
154+
# role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
155+
# role-external-id: ${{ secrets.AWS_ROLE_EXTERNAL_ID }}
156+
# role-duration-seconds: 900
157+
#
158+
# - name: Upload wheels to s3
159+
# run: |
160+
# zip ion-python-wheels ./*.whl
161+
# aws s3 mv ion-python-wheels.zip ${{ secrets.AWS_WHEELS_BUCKET_URL }} --acl bucket-owner-full-control
162+
#
163+
# - name: Install the released wheels from PYPI
164+
# run: |
165+
# sleep 300s
166+
#
167+
# for (( i=0; i<3; i++ ))
168+
# do
169+
# v=""
170+
#
171+
# if ! (pip install --only-binary :all: amazon.ion==${GITHUB_REF##*/v}) then
172+
# echo "Unable to install the desired version"
173+
# sleep 120s
174+
# continue
175+
# fi
176+
#
177+
# v=$( pip show amazon.ion | grep Version )
178+
# break
179+
# done
180+
#
181+
# if [[ $v != "Version: ${GITHUB_REF##*/v}" ]]
182+
# then
183+
# echo "Exiting because unable to install the new version from PYPI"
184+
# exit 1
185+
# fi

0 commit comments

Comments
 (0)