-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into impr/3995/NO_COLOR+FORCE_COLOR
- Loading branch information
Showing
422 changed files
with
4,038 additions
and
3,415 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 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 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 |
---|---|---|
|
@@ -29,23 +29,23 @@ jobs: | |
timeout-minutes: 45 | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.12"] | ||
python-version: ["3.9", "3.13"] | ||
batches: [4] | ||
batchIdx: [0, 1, 2, 3] | ||
steps: | ||
- name: Check out code from GitHub | ||
uses: actions/checkout@v4.1.6 | ||
uses: actions/checkout@v4.2.2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
id: python | ||
uses: actions/setup-python@v5.1.0 | ||
uses: actions/setup-python@v5.3.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
check-latest: true | ||
|
||
# Create a re-usable virtual environment | ||
- name: Create Python virtual environment cache | ||
- name: Restore Python virtual environment cache | ||
id: cache-venv | ||
uses: actions/cache@v4.0.2 | ||
uses: actions/cache/restore@v4.1.2 | ||
with: | ||
path: venv | ||
key: | ||
|
@@ -60,6 +60,17 @@ jobs: | |
. venv/bin/activate | ||
python -m pip install -U pip setuptools wheel | ||
pip install -U -r requirements_test.txt | ||
# Save cached Python environment (explicit because cancel-in-progress: true) | ||
- name: Save Python virtual environment to cache | ||
if: steps.cache-venv.outputs.cache-hit != 'true' | ||
uses: actions/cache/[email protected] | ||
with: | ||
path: venv | ||
key: | ||
${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ | ||
env.KEY_PREFIX }}-${{ env.CACHE_VERSION }}-${{ hashFiles('pyproject.toml', | ||
'requirements_test.txt', 'requirements_test_min.txt', | ||
'requirements_test_pre_commit.txt') }} | ||
|
||
# Cache primer packages | ||
- name: Get commit string | ||
|
@@ -71,7 +82,7 @@ jobs: | |
echo "commitstring=$output" >> $GITHUB_OUTPUT | ||
- name: Restore projects cache | ||
id: cache-projects | ||
uses: actions/cache@v4.0.2 | ||
uses: actions/cache/restore@v4.1.2 | ||
with: | ||
path: tests/.pylint_primer_tests/ | ||
key: >- | ||
|
@@ -82,8 +93,16 @@ jobs: | |
run: | | ||
. venv/bin/activate | ||
python tests/primer/__main__.py prepare --clone | ||
- name: Save projects cache | ||
if: steps.cache-projects.outputs.cache-hit != 'true' | ||
uses: actions/cache/[email protected] | ||
with: | ||
path: tests/.pylint_primer_tests/ | ||
key: >- | ||
${{ runner.os }}-${{ matrix.python-version }}-${{ | ||
steps.commitstring.outputs.commitstring }}-primer | ||
- name: Upload commit string | ||
uses: actions/upload-artifact@v4.3.3 | ||
uses: actions/upload-artifact@v4.4.3 | ||
if: matrix.batchIdx == 0 | ||
with: | ||
name: primer_commitstring_${{ matrix.python-version }} | ||
|
@@ -104,7 +123,7 @@ jobs: | |
then echo "::warning ::$WARNINGS" | ||
fi | ||
- name: Upload output | ||
uses: actions/upload-artifact@v4.3.3 | ||
uses: actions/upload-artifact@v4.4.3 | ||
with: | ||
name: | ||
primer_output_main_${{ matrix.python-version }}_batch${{ matrix.batchIdx }} | ||
|
Oops, something went wrong.