Fix uint64 return types on ec ops (#717) #3250
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
name: "On Commit Workflow" | |
on: | |
pull_request: | |
push: | |
tags: | |
- v** | |
branches: | |
- master | |
jobs: | |
build-test: | |
runs-on: ubuntu-20.04 | |
container: python:${{ matrix.python }} | |
strategy: | |
matrix: | |
python: ["3.10", "3.11", "3.12"] | |
steps: | |
- run: python3 --version | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Install Python dependencies, Build, and Test | |
run: make setup-build-test | |
run-integration-tests: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python: ["3.10", "3.11", "3.12"] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "${{ matrix.python }}" | |
- name: Test Python version | |
run: | | |
installed="$(python --version)" | |
expected="${{ matrix.python }}" | |
echo $installed | |
[[ $installed =~ "Python ${expected}" ]] && echo "Configured Python" || (echo "Failed to configure Python" && exit 1) | |
- name: Integration tests using algod | |
run: make algod-integration | |
build-docset: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python: ["3.10"] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "${{ matrix.python }}" | |
- name: Install python dependencies | |
run: make setup-docs | |
- name: Make docs | |
run: make bundle-docs | |
- name: Archive docset | |
if: ${{ !env.ACT }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pyteal.docset | |
path: docs/pyteal.docset.tar.gz | |
upload-to-pypi: | |
runs-on: ubuntu-20.04 | |
container: python:3.10 | |
needs: ['build-test', 'run-integration-tests', 'build-docset'] | |
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: make setup-wheel | |
- name: Build package | |
run: make bdist-wheel | |
- name: Release | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |