Skip to content

Commit

Permalink
Rename the extension to just Sema4.ai (#3)
Browse files Browse the repository at this point in the history
* Rename the extension to just `Sema4.ai`
* Single-click to development scripts
* Fixing lints
* Fixed develop scripts: yarn was missing
* Version bump 1.22.3

---------

Co-authored-by: Cosmin G. Popa <cosmin.gabriel.popa@gmail.com>
  • Loading branch information
kariharju and custompointofview authored May 22, 2024
1 parent 4dd1960 commit ff4b164
Show file tree
Hide file tree
Showing 425 changed files with 448 additions and 321 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/3_robocorp-code-bug-report.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: Bug Report - Sema4.ai Code
about: Create a report to help us improve Sema4.ai Code
name: Bug Report - Sema4.ai
about: Create a report to help us improve Sema4.ai
title: ''
labels: bug, sema4ai-code
labels: bug, sema4ai
assignees: ''

---
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/4_robocorp-code-feature-request.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
name: Feature request - Sema4.ai Code
about: Suggest an idea for Sema4.ai Code
name: Feature request - Sema4.ai
about: Suggest an idea for Sema4.ai
title: ''
labels: enhancement, sema4ai-code
labels: enhancement, sema4ai
assignees: ''

---
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: |
python -m pip install --upgrade pip fire poetry
cd sema4ai-code
cd sema4ai
poetry config virtualenvs.prefer-active-python true
poetry install
Expand All @@ -30,23 +30,23 @@ jobs:
run: |
npm install -g prettier@2.4.1
- name: Prettier Sema4.ai Code (yarn prettier --write vscode-client/**/*.ts to format files locally)
working-directory: ./sema4ai-code
- name: Prettier Sema4.ai (yarn prettier --write vscode-client/**/*.ts to format files locally)
working-directory: ./sema4ai
if: always()
run: prettier --check vscode-client/**/*.ts

- name: ruff format check sema4ai-code
working-directory: ./sema4ai-code
- name: ruff format check sema4ai
working-directory: ./sema4ai
if: always()
run: |
echo $PWD
ls -la
# Fix with python -m dev ruff_format --format
poetry run python -m dev ruff_format
- name: mypy sema4ai-code
- name: mypy sema4ai
if: always()
working-directory: ./sema4ai-code
working-directory: ./sema4ai
run: |
poetry run mypy --follow-imports=silent --show-column-numbers $PWD/src $PWD/tests $PWD/codegen
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/pre-release-robocorp-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ on:
version:
description: 'Version'
required: true
name: Pre-release - Sema4.ai Code Extension
name: Pre-release - Sema4.ai Extension
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./sema4ai-code
working-directory: ./sema4ai

strategy:
fail-fast: true
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
run: python -m dev generate-license-file

- name: Install locally
working-directory: ./sema4ai-code
working-directory: ./sema4ai
run: poetry install

- run: npm install -g vsce@2.15.0
Expand All @@ -66,62 +66,62 @@ jobs:
- name: Download rcc for windows
run: python -m dev download-rcc win32

- run: vsce package --pre-release --target win32-x64 -o sema4ai-code-win32-x64.vsix
- run: vsce package --pre-release --target win32-x64 -o sema4ai-win32-x64.vsix

- uses: actions/upload-artifact@v4
with:
name: sema4ai-code-win32-x64.vsix
path: ./sema4ai-code/sema4ai-code-win32-x64.vsix
name: sema4ai-win32-x64.vsix
path: ./sema4ai/sema4ai-win32-x64.vsix

- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-code-win32-x64.vsix -p $VSCODE_VSCE_TOKEN --pre-release
run: vsce publish --packagePath ./sema4ai-win32-x64.vsix -p $VSCODE_VSCE_TOKEN --pre-release
env:
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}

# Deal with Linux --------------
- name: Download rcc for linux
run: python -m dev download-rcc linux

- run: vsce package --pre-release --target linux-x64 -o sema4ai-code-linux-x64.vsix
- run: vsce package --pre-release --target linux-x64 -o sema4ai-linux-x64.vsix

- uses: actions/upload-artifact@v4
with:
name: sema4ai-code-linux-x64.vsix
path: ./sema4ai-code/sema4ai-code-linux-x64.vsix
name: sema4ai-linux-x64.vsix
path: ./sema4ai/sema4ai-linux-x64.vsix

- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-code-linux-x64.vsix -p $VSCODE_VSCE_TOKEN --pre-release
run: vsce publish --packagePath ./sema4ai-linux-x64.vsix -p $VSCODE_VSCE_TOKEN --pre-release
env:
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}

# Deal with Darwin x64 --------------
- name: Download rcc for darwin
run: python -m dev download-rcc darwin

- run: vsce package --pre-release --target darwin-x64 -o sema4ai-code-darwin-x64.vsix
- run: vsce package --pre-release --target darwin-x64 -o sema4ai-darwin-x64.vsix

- uses: actions/upload-artifact@v4
with:
name: sema4ai-code-darwin-x64.vsix
path: ./sema4ai-code/sema4ai-code-darwin-x64.vsix
name: sema4ai-darwin-x64.vsix
path: ./sema4ai/sema4ai-darwin-x64.vsix

- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-code-darwin-x64.vsix -p $VSCODE_VSCE_TOKEN --pre-release
run: vsce publish --packagePath ./sema4ai-darwin-x64.vsix -p $VSCODE_VSCE_TOKEN --pre-release
env:
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}

# Deal with Darwin arm64 --------------
- name: Download rcc for darwin
run: python -m dev download-rcc darwin

- run: vsce package --pre-release --target darwin-arm64 -o sema4ai-code-darwin-arm64.vsix
- run: vsce package --pre-release --target darwin-arm64 -o sema4ai-darwin-arm64.vsix

- uses: actions/upload-artifact@v4
with:
name: sema4ai-code-darwin-arm64.vsix
path: ./sema4ai-code/sema4ai-code-darwin-arm64.vsix
name: sema4ai-darwin-arm64.vsix
path: ./sema4ai/sema4ai-darwin-arm64.vsix

- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-code-darwin-arm64.vsix -p $VSCODE_VSCE_TOKEN --pre-release
run: vsce publish --packagePath ./sema4ai-darwin-arm64.vsix -p $VSCODE_VSCE_TOKEN --pre-release
env:
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}
50 changes: 25 additions & 25 deletions .github/workflows/release-robocorp-code-vscode.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
on:
push:
branches:
- "release-sema4ai-code"
- "release-sema4ai"
tags:
- "sema4ai-code-*"
name: Deploy - Sema4.ai Code Extension
- "sema4ai-*"
name: Deploy - Sema4.ai Extension
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./sema4ai-code
working-directory: ./sema4ai

strategy:
fail-fast: true
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Generate LICENSE.md
run: python -m dev generate-license-file
- name: Install locally
working-directory: ./sema4ai-code
working-directory: ./sema4ai
run: poetry install
- run: npm install -g vsce@2.15.0

Expand All @@ -47,82 +47,82 @@ jobs:
- name: Download rcc for windows
run: python -m dev download-rcc win32

- run: vsce package --target win32-x64 -o sema4ai-code-win32-x64.vsix
- run: vsce package --target win32-x64 -o sema4ai-win32-x64.vsix

- uses: actions/upload-artifact@v4
with:
name: sema4ai-code-win32-x64.vsix
path: ./sema4ai-code/sema4ai-code-win32-x64.vsix
name: sema4ai-win32-x64.vsix
path: ./sema4ai/sema4ai-win32-x64.vsix

- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-code-win32-x64.vsix -p $VSCODE_VSCE_TOKEN
run: vsce publish --packagePath ./sema4ai-win32-x64.vsix -p $VSCODE_VSCE_TOKEN
env:
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}

- name: Publish windows to open vsx marketplace
run: npx ovsx publish sema4ai-code-win32-x64.vsix -p $VSCODE_OPEN_VSX_TOKEN
run: npx ovsx publish sema4ai-win32-x64.vsix -p $VSCODE_OPEN_VSX_TOKEN
env:
VSCODE_OPEN_VSX_TOKEN: ${{ secrets.VSCODE_OPEN_VSX_TOKEN }}

# Deal with Linux --------------
- name: Download rcc for linux
run: python -m dev download-rcc linux

- run: vsce package --target linux-x64 -o sema4ai-code-linux-x64.vsix
- run: vsce package --target linux-x64 -o sema4ai-linux-x64.vsix

- uses: actions/upload-artifact@v4
with:
name: sema4ai-code-linux-x64.vsix
path: ./sema4ai-code/sema4ai-code-linux-x64.vsix
name: sema4ai-linux-x64.vsix
path: ./sema4ai/sema4ai-linux-x64.vsix

- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-code-linux-x64.vsix -p $VSCODE_VSCE_TOKEN
run: vsce publish --packagePath ./sema4ai-linux-x64.vsix -p $VSCODE_VSCE_TOKEN
env:
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}

- name: Publish linux to open vsx marketplace
run: npx ovsx publish sema4ai-code-linux-x64.vsix -p $VSCODE_OPEN_VSX_TOKEN
run: npx ovsx publish sema4ai-linux-x64.vsix -p $VSCODE_OPEN_VSX_TOKEN
env:
VSCODE_OPEN_VSX_TOKEN: ${{ secrets.VSCODE_OPEN_VSX_TOKEN }}

# Deal with Darwin x64 --------------
- name: Download rcc for darwin
run: python -m dev download-rcc darwin

- run: vsce package --target darwin-x64 -o sema4ai-code-darwin-x64.vsix
- run: vsce package --target darwin-x64 -o sema4ai-darwin-x64.vsix

- uses: actions/upload-artifact@v4
with:
name: sema4ai-code-darwin-x64.vsix
path: ./sema4ai-code/sema4ai-code-darwin-x64.vsix
name: sema4ai-darwin-x64.vsix
path: ./sema4ai/sema4ai-darwin-x64.vsix

- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-code-darwin-x64.vsix -p $VSCODE_VSCE_TOKEN
run: vsce publish --packagePath ./sema4ai-darwin-x64.vsix -p $VSCODE_VSCE_TOKEN
env:
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}

- name: Publish darwin to open vsx marketplace
run: npx ovsx publish sema4ai-code-darwin-x64.vsix -p $VSCODE_OPEN_VSX_TOKEN
run: npx ovsx publish sema4ai-darwin-x64.vsix -p $VSCODE_OPEN_VSX_TOKEN
env:
VSCODE_OPEN_VSX_TOKEN: ${{ secrets.VSCODE_OPEN_VSX_TOKEN }}

# Deal with Darwin arm64 --------------
- name: Download rcc for darwin
run: python -m dev download-rcc darwin

- run: vsce package --target darwin-arm64 -o sema4ai-code-darwin-arm64.vsix
- run: vsce package --target darwin-arm64 -o sema4ai-darwin-arm64.vsix

- uses: actions/upload-artifact@v4
with:
name: sema4ai-code-darwin-arm64.vsix
path: ./sema4ai-code/sema4ai-code-darwin-arm64.vsix
name: sema4ai-darwin-arm64.vsix
path: ./sema4ai/sema4ai-darwin-arm64.vsix

- name: Publish pre-release to vscode marketplace
run: vsce publish --packagePath ./sema4ai-code-darwin-arm64.vsix -p $VSCODE_VSCE_TOKEN
run: vsce publish --packagePath ./sema4ai-darwin-arm64.vsix -p $VSCODE_VSCE_TOKEN
env:
VSCODE_VSCE_TOKEN: ${{ secrets.VSCODE_VSCE_TOKEN }}

- name: Publish darwin to open vsx marketplace
run: npx ovsx publish sema4ai-code-darwin-arm64.vsix -p $VSCODE_OPEN_VSX_TOKEN
run: npx ovsx publish sema4ai-darwin-arm64.vsix -p $VSCODE_OPEN_VSX_TOKEN
env:
VSCODE_OPEN_VSX_TOKEN: ${{ secrets.VSCODE_OPEN_VSX_TOKEN }}
16 changes: 8 additions & 8 deletions .github/workflows/tests-robocorp-code-vscode.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Tests - Sema4.ai Code (sema4ai-code)
name: Tests - Sema4.ai (sema4ai)

on:
push:
paths:
- sema4ai-code/**
- sema4ai/**
- sema4ai-python-ls-core/**
- .github/**

pull_request:
paths:
- sema4ai-code/**
- sema4ai/**
- sema4ai-python-ls-core/**
- .github/**

Expand Down Expand Up @@ -47,15 +47,15 @@ jobs:
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Vendor sema4ai_ls_core
working-directory: ./sema4ai-code
working-directory: ./sema4ai
run: |
pip install fire poetry
python -m dev vendor-robocorp-ls-core
- name: poetry install
working-directory: ./sema4ai-code
working-directory: ./sema4ai
run: poetry install
- name: Test
working-directory: ./sema4ai-code/tests
working-directory: ./sema4ai/tests
env:
PYTHONPATH: .
CI_CREDENTIALS: ${{ secrets.CI_CREDENTIALS }}
Expand All @@ -67,10 +67,10 @@ jobs:
if: always()
with:
name: tests_output.${{ matrix.name }}.txt
path: sema4ai-code/tests/tests_output
path: sema4ai/tests/tests_output
- uses: actions/upload-artifact@v4
if: always()
with:
name: log.${{ matrix.name }}.html
path: sema4ai-code/tests/output/log.html
path: sema4ai/tests/output/log.html

Loading

0 comments on commit ff4b164

Please sign in to comment.