Skip to content

target python 3.10 to use colab #34

target python 3.10 to use colab

target python 3.10 to use colab #34

Workflow file for this run

name: CI
on:
push:
branches: ["main", "renovate/*"]
tags: ["*.*.*"]
pull_request:
branches: ["main"]
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/heads/')
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/pyproject.toml', '**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- uses: actions/setup-python@v4
with:
python-version: 3.10
- name: poetry install
run: |
pip install poetry
poetry install
- run: poetry run pyright
env:
PYRIGHT_PYTHON_FORCE_VERSION: latest
- run: poetry run ruff check yohane/
if: always()
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/pyproject.toml', '**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- uses: actions/setup-python@v4
with:
python-version: 3.10
- name: poetry install
run: |
pip install poetry
poetry install
- run: poetry publish --build
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.POETRY_PYPI_TOKEN_PYPI }}
- uses: actions/upload-artifact@v3
with:
name: dist
path: dist/