diff --git a/.github/workflows/testHumanEval.yml b/.github/workflows/testHumanEval.yml new file mode 100644 index 00000000..23759a79 --- /dev/null +++ b/.github/workflows/testHumanEval.yml @@ -0,0 +1,41 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Nagini HumanEval Python 3.11 + +on: [pull_request, workflow_dispatch] + +jobs: + build: + + runs-on: ubuntu-22.04 + env: + BOOGIE_EXE: "/home/runner/.dotnet/tools/boogie" + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.11 + uses: actions/setup-python@v3 + with: + python-version: "3.11" + architecture: "x64" + - name: Setup .NET + uses: xt0rted/setup-dotnet@v1.5.0 + with: + dotnet-version: 6.0.x + - name: Install Boogie + run: | + dotnet tool install --global Boogie --version 2.15.9 + - name: Install Nagini + run: | + python -m pip install --upgrade pip + pip install setuptools==68.2.0 + pip install . + - name: Check out HumanEval examples + uses: actions/checkout@v2 + with: + repository: JetBrains-Research/HumanEval-Nagini + path: HumanEval + - name: Run all examples + run: | + cd HumanEval + ./public/scripts/test-all.sh diff --git a/.github/workflows/testSingle.yml b/.github/workflows/testSingle.yml new file mode 100644 index 00000000..eed75da0 --- /dev/null +++ b/.github/workflows/testSingle.yml @@ -0,0 +1,35 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Nagini Single Complex Test Ubuntu Python 3.11 + +on: [pull_request, workflow_dispatch] + +jobs: + build: + + runs-on: ubuntu-22.04 + env: + BOOGIE_EXE: "/home/runner/.dotnet/tools/boogie" + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.11 + uses: actions/setup-python@v3 + with: + python-version: "3.11" + architecture: "x64" + - name: Setup .NET + uses: xt0rted/setup-dotnet@v1.5.0 + with: + dotnet-version: 6.0.x + - name: Install Boogie + run: | + dotnet tool install --global Boogie --version 2.15.9 + - name: Install Nagini + run: | + python -m pip install --upgrade pip + pip install setuptools==68.2.0 + pip install . + - name: Verify single complex file + run: | + nagini tests/functional/verification/examples/VerifyThis22_Challenge2.py \ No newline at end of file