Skip to content

Merge pull request #3 from gosling-lang/etowahadams/upgrade-gosling #14

Merge pull request #3 from gosling-lang/etowahadams/upgrade-gosling

Merge pull request #3 from gosling-lang/etowahadams/upgrade-gosling #14

Workflow file for this run

name: Test font and back end build
on:
pull_request:
branches: [master]
push:
branches: [master]
permissions:
contents: read
jobs:
build_front:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [17.x, 18.x]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: npm Build
working-directory: streamlit_gosling/frontend
run: |
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm run build
build_wheel:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9']
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build package
run: python setup.py sdist bdist_wheel