/
githubmirror
/
gpt-engineer
Обзор
Документация
Войти
/
githubmirror
/
gpt-engineer
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/ci.yaml
49 строк
1 KB
captivus
pinning Python 3.12.3 for tox in CI to resolve Pydantic ForwardRef issue
07 июл 2024, 21:53
07 июл 2024, 21:53
d068b0c
Код
Авторство
О чём код?
name: Tox pytest all python versions on: push: branches: [ main ] paths: - gpt_engineer/** - tests/** pull_request: branches: [ main ] concurrency: group: ${{ github.workflow }} - ${{ github.ref }} cancel-in-progress: true jobs: test: runs-on: ubuntu-latest strategy: matrix: python-version: ['3.10', '3.11', '3.12'] steps: - name: Checkout repository uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version == '3.12' && '3.12.3' || matrix.python-version }} # Using 3.12.3 to resolve Pydantic ForwardRef issue cache: 'pip' # Note that pip is for the tox level. Poetry is still used for installing the specific environments (tox.ini) - name: Check Python Version run: python --version - name: Install dependencies run: | python -m pip install --upgrade pip pip install tox==4.15.0 poetry - name: Run tox env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} run: tox # Temporarily disabling codecov until we resolve codecov rate limiting issue # - name: Report coverage # run: | # bash <(curl -s https://codecov.io/bash)