Skip to content

ci: PLT-525: switch to python 3.12 #446

ci: PLT-525: switch to python 3.12

ci: PLT-525: switch to python 3.12 #446

Workflow file for this run

name: ci
on: [push]
jobs:
# compile:
# runs-on: ubuntu-20.04
# steps:
# - name: Checkout repo
# uses: actions/checkout@v4
# - name: Set up python
# uses: actions/setup-python@v5
# with:
# python-version: 3.8
# - name: Bootstrap poetry
# run: |
# curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
# - name: Install dependencies
# run: poetry install
# - name: Compile
# run: poetry run mypy .
test:
runs-on: ubuntu-latest
steps:
- name: "Checkout repo"
uses: actions/checkout@v4
- name: "Install poetry"
run: pipx install poetry
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'poetry'
- name: "Install dependencies"
run: poetry install
- name: Install Fern
run: npm install -g fern-api
- name: Test
run: fern test --command "poetry run pytest -rP ."
# publish:
# needs: [compile, test]
# if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
# runs-on: ubuntu-20.04
# steps:
# - name: Checkout repo
# uses: actions/checkout@v4
# - name: Set up python
# uses: actions/setup-python@v5
# with:
# python-version: 3.8
# - name: Bootstrap poetry
# run: |
# curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
# - name: Install dependencies
# run: poetry install
# - name: Publish to pypi
# run: |
# poetry config repositories.remote https://upload.pypi.org/legacy/
# poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD"
# env:
# PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
# PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}