use new vercel config #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration (CI) | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
PYTHON_VERSION: 3.12 | |
NODE_VERSION: 22.9 | |
NODE_ENV: ci | |
CI: true | |
jobs: | |
cancel-previous-runs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
libx-py: | |
runs-on: ubuntu-22.04 | |
needs: cancel-previous-runs | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- name: Tooling | |
run: | | |
python -m pip install --upgrade pip && \ | |
pip install pipenv && \ | |
pipenv install --deploy --dev && \ | |
pipenv run black libx/*.py -l 80 --check | |
libx-js: | |
runs-on: ubuntu-22.04 | |
needs: cancel-previous-runs | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Tooling | |
run: | | |
cd www/libx && \ | |
yarn install --frozen-lockfile && \ | |
yarn lint && \ | |
yarn pretty && \ | |
yarn build |