Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

pin jupytext

pin jupytext #429

Workflow file for this run

# 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: Python application
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test-dir: ["unit", "integration"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
env:
UNIONML_CI: "1"
AWS_ACCESS_KEY_ID: minio
AWS_SECRET_ACCESS_KEY: miniostorage
steps:
- uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v2
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements files
key: ${{ format('{0}-pip-{1}', runner.os, hashFiles('requirements.txt', 'requirements-dev.txt', 'requirements-docs.txt')) }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install awscli
pip install typing_extensions # required for mangum install
pip install -r requirements-docs.txt
pip install --no-deps -e .
- name: Pip info
run: python -m pip list
- name: Lint
run: |
pre-commit run --all-files --show-diff-on-failure
- name: Install FlyteCTL
if: ${{ matrix.test-dir == 'integration' }}
uses: unionai-oss/flytectl-setup-action@master
- name: Setup Flyte Sandbox
if: ${{ matrix.test-dir == 'integration' }}
run: |
flytectl demo start
flytectl config init
- name: Pytest
run: |
pytest tests/${{ matrix.test-dir }}
- name: Build Docs
if: ${{ matrix.test-dir == 'unit' }}
run: make docs