talk to openAI model #1
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: Tests (no LLM) | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
setup_job: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Miniconda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
architecture: x64 | |
activate-environment: swe-agent | |
environment-file: environment.yml | |
- name: Run setup script and create keys.cfg | |
run: | | |
./setup.sh | |
touch keys.cfg | |
shell: bash | |
- name: Install test dependencies | |
run: | | |
pip install pytest pytest-cov | |
- name: Run pytest | |
run: | | |
pytest --cov | |
- name: Explicitly convert coverage to xml | |
run: coverage xml | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4.0.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: princeton-nlp/SWE-agent |