Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
d789de9
Groovy lang works on JVM but we haven't supported it as jvm_test_pattern
Konboi Jun 19, 2025
099cc68
feature: migrate from `pipenv` to `uv`
ninjinkun Jun 18, 2025
771c19a
refactor: rename GA files
ninjinkun Jun 19, 2025
6353ba6
refactor: use uv publish
ninjinkun Jun 19, 2025
25b1076
Merge pull request #1048 from launchableinc/support-groovy-as-jvm-files
Konboi Jun 19, 2025
790d3c2
[tagpr] prepare for the next release
github-actions[bot] Jun 19, 2025
8a83f54
Update pyproject.toml
ninjinkun Jun 19, 2025
3d879bd
Merge pull request #1049 from launchableinc/tagpr-from-v1.103.1
Konboi Jun 19, 2025
3534cae
refactor: remove an unused option
ninjinkun Jun 19, 2025
3ffe950
refactor: update dependencies
ninjinkun Jun 19, 2025
76e8312
support groovy file in the maven profile
Konboi Jun 19, 2025
3b1c57f
Merge pull request #1050 from launchableinc/support-groovy-for-maven
Konboi Jun 19, 2025
921a92c
[tagpr] prepare for the next release
github-actions[bot] Jun 19, 2025
e11e7d2
Merge pull request #1051 from launchableinc/tagpr-from-v1.104.0
Konboi Jun 19, 2025
b13dd73
install latest version
Konboi Jun 23, 2025
a1ec8e6
from junitparser v4.0.0 returns JUnitXml instead of testsuite
Konboi Jun 23, 2025
6b94c1c
Merge pull request #1055 from launchableinc/fix-robot-ci
Konboi Jun 24, 2025
70042cf
[LCHIB-612] Add a workaround for handling timezone abbreviations in d…
ono-max Jun 13, 2025
842f235
Add new tests for checking the behavior
ono-max Jun 23, 2025
bc99065
Use assertEqual instead of assertTrue and assertIn
ono-max Jun 25, 2025
7fc8428
Add comment
ono-max Jun 25, 2025
5b51375
Merge pull request #1043 from launchableinc/LCHIB-612
ono-max Jun 25, 2025
120a19a
[tagpr] prepare for the next release
github-actions[bot] Jun 25, 2025
9971c58
Merge pull request #1056 from launchableinc/tagpr-from-v1.105.0
ono-max Jun 25, 2025
742fbae
fix: specify the uv commit hash
ninjinkun Jun 25, 2025
5b56f0d
refactor: use .python-version
ninjinkun Jun 25, 2025
cbc377e
feature: update e2e.yml
ninjinkun Jun 25, 2025
5ed3ad3
Update .github/workflows/e2e.yml
ninjinkun Jun 26, 2025
49f547e
refactor: use safer PyPI token variable name
ninjinkun Jun 27, 2025
b9e2c94
Merge branch 'main' into introduce-uv
ninjinkun Jun 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 8 additions & 13 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: e2e

on:
push:
branches: [main]
branches: [main, smart-tests] # smart-tests branch temporarily added for Smart Tests CLI development
workflow_dispatch:


Expand All @@ -16,30 +16,25 @@ env:
jobs:
tests:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
repository: launchableinc/examples
path: examples
- name: Set up JDK 1.8
uses: actions/setup-java@v4
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4
with:
java-version: 8
distribution: 'temurin'
- uses: actions/setup-go@v5
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
with:
go-version: 1.24
- uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@caf0cab7a618c569241d31dcd442f54681755d39 # v3
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
run: uv sync --dev && uv pip install .
# bazel
- name: Install Bazelisk
run: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflows will upload a Python Package
# For more information see: https://github.com/marketplace/actions/pypi-publish
# Publish workflow for the Launchable CLI
# Builds and publishes packages to PyPI and Docker Hub

name: Upload Python Package
name: Publish

on:
workflow_dispatch:
Expand Down Expand Up @@ -38,32 +38,13 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
# build and publish package using GitHub Actions workflow
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
# actual publish
- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Build package
run: uv build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
run: uv publish --token ${{ secrets.SMART_TESTS_PYPI_API_TOKEN }}
- name: Actions for Discord
uses: Ilshidur/action-discord@0.3.2
env:
Expand Down
119 changes: 0 additions & 119 deletions .github/workflows/python-package.yml

This file was deleted.

95 changes: 95 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Test workflow for the Launchable CLI
# Runs tests, linting, type checking, and build verification

name: Test

on:
workflow_dispatch:
push:
branches: [ main ]
paths-ignore:
- 'WORKSPACE'
- 'src/**'
pull_request:
paths-ignore:
- 'WORKSPACE'
- 'src/**'
schedule:
# This job runs at 00:00 JST every day.
- cron: '0 9 * * *'

env:
LAUNCHABLE_ORGANIZATION: "launchableinc"
LAUNCHABLE_WORKSPACE: "cli"
GITHUB_PULL_REQUEST_URL: ${{ github.event.pull_request.html_url }}
GITHUB_PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}

permissions:
id-token: write
contents: read

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, windows-latest]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need to set multiple Python versions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With uv, we only need to support a specified version. In this case, that's 3.13 in .python-version.


steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install uv
uses: astral-sh/setup-uv@caf0cab7a618c569241d31dcd442f54681755d39 # v3
with:
enable-cache: true
cache-dependency-glob: "uv.lock"

- name: Set up JDK 1.8
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
with:
java-version: 8
distribution: 'temurin'

- name: Install dependencies
run: uv sync --dev

- name: Test package build
run: uv build

- name: Type check
run: uv run poe type

- name: Lint with flake8
run: uv run poe lint
- name: Pull request validation
run: |
# Install Launchable CLI from this repo's code as a global tool
uv tool install .
set -x
launchable verify
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't change the command name??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will change the command name in another PR.

# Tell Launchable about the build you are producing and testing
launchable record build --name ${GITHUB_RUN_ID}
launchable record session --build ${GITHUB_RUN_ID} --flavor os=${{ matrix.os }} --flavor python=$(cat .python-version) > session.txt
# Find 25% of the relevant tests to run for this change
find tests -name test_*.py | grep -v tests/data | launchable subset --target 25% --session $(cat session.txt) --rest launchable-remainder.txt file > subset.txt
function record() {
# Record test results
LAUNCHABLE_SLACK_NOTIFICATION=true launchable record tests --session $(cat session.txt) file test-results/*.xml
}
trap record EXIT
# Test subset of tests
uv run poe test-xml $(tr '\r\n' '\n' < subset.txt)
# Test rest of tests
uv run poe test-xml $(tr '\r\n' '\n' < launchable-remainder.txt)
shell: bash
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.6.15
3.13
45 changes: 0 additions & 45 deletions Pipfile

This file was deleted.

Loading
Loading