-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Verify datasources in launch, use Python 3.11, add python_variable_na…
…me when datasource is found
- Loading branch information
Showing
57 changed files
with
2,819 additions
and
879 deletions.
There are no files selected for viewing
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
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
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Tests - Python Language Server Core (sema4ai-python-ls-core) | ||
|
||
on: | ||
push: | ||
paths: | ||
- sema4ai-python-ls-core/** | ||
- .github/** | ||
|
||
pull_request: | ||
paths: | ||
- sema4ai-python-ls-core/** | ||
- .github/** | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
name: ["windows-py311", "ubuntu-py311", "macos-py311"] | ||
|
||
include: | ||
- name: "windows-py311" | ||
python: "3.11" | ||
os: windows-latest | ||
- name: "ubuntu-py311" | ||
python: "3.11" | ||
os: ubuntu-latest | ||
- name: "macos-py311" | ||
python: "3.11" | ||
os: macos-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Upgrade pip, install fire, poetry | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install fire poetry | ||
- name: poetry install | ||
working-directory: ./sema4ai-python-ls-core | ||
run: | | ||
poetry install | ||
- name: Test | ||
working-directory: ./sema4ai-python-ls-core/tests | ||
env: | ||
PYTHONPATH: . | ||
run: poetry run python -u ./run_tests.py -rfE -otests_output -vv . | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: tests_output.${{ matrix.name }}.txt | ||
path: sema4ai-python-ls-core/tests/tests_output |
84 changes: 84 additions & 0 deletions
84
.github/workflows/tests-sema4ai-sdk-data-server-integration.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: Tests - Sema4.ai Data Server Integration (sema4ai) | ||
|
||
on: | ||
push: | ||
paths: | ||
- sema4ai/** | ||
- sema4ai-python-ls-core/** | ||
- .github/** | ||
|
||
pull_request: | ||
paths: | ||
- sema4ai/** | ||
- sema4ai-python-ls-core/** | ||
- .github/** | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
name: [ | ||
"ubuntu-py311", | ||
"windows-py311", | ||
# "mac-py311", mac disabled because it takes too long for runners to pick the mac job up. | ||
] | ||
|
||
include: | ||
- name: "ubuntu-py311" | ||
python: "3.11" | ||
os: ubuntu-latest | ||
- name: "windows-py311" | ||
python: "3.11" | ||
os: windows-latest | ||
# - name: "mac-py311" | ||
# python: "3.11" | ||
# os: mac-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Upgrade pip | ||
run: python -m pip install --upgrade pip | ||
- name: Vendor sema4ai_ls_core | ||
working-directory: ./sema4ai | ||
run: | | ||
pip install fire poetry | ||
python -m dev vendor-robocorp-ls-core | ||
- name: poetry install | ||
working-directory: ./sema4ai | ||
run: poetry install | ||
- name: Run codegen | ||
run: python -m dev codegen | ||
working-directory: ./sema4ai | ||
env: | ||
PYTHONPATH: src | ||
- name: Test | ||
working-directory: ./sema4ai/tests | ||
env: | ||
PYTHONPATH: . | ||
CI_CREDENTIALS: ${{ secrets.CI_CREDENTIALS }} | ||
CI_ENDPOINT: ${{ secrets.CI_ENDPOINT }} | ||
# Big timeout to create environment in windows. | ||
RUN_TESTS_TIMEOUT: 3000 | ||
ACTION_SERVER_TEST_ACCESS_CREDENTIALS: ${{ secrets.ACTION_SERVER_TEST_ACCESS_CREDENTIALS }} | ||
|
||
run: poetry run python -u ../../sema4ai-python-ls-core/tests/run_tests.py -rfE -otests_output_data_server -vv -m data_server . | ||
|
||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: tests_output_data_server.${{ matrix.name }}.txt | ||
path: sema4ai/tests/tests_output_data_server | ||
- uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: log_data_server.${{ matrix.name }}.html | ||
path: sema4ai/tests/output/log.html | ||
|
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
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
Oops, something went wrong.