Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Implement RUFF to replace many of the dependencies#16

Implement RUFF to replace many of the dependencies

Implement RUFF to replace many of the dependencies #16

Workflow file for this run

name:Python-mode Tests
on:
push:
branches:[ main, develop ]
pull_request:
branches:[ main, develop ]
schedule:
-cron:'0 0 * * 0'# Weekly run
jobs:
test-linux:
name:Test on Linux (Python ${{ matrix.python-version }})
runs-on:ubuntu-latest
strategy:
matrix:
python-version:['3.10', '3.11', '3.12', '3.13']
fail-fast:false
steps:
-name:Checkout code
uses:actions/checkout@v4
with:
submodules:recursive
-name:Set up Python ${{ matrix.python-version }}
uses:actions/setup-python@v5
with:
python-version:${{ matrix.python-version }}
-name:Install Ruff
run:|
pip install ruff
-name:Install system dependencies
run:|
sudo apt-get update
sudo apt-get install -y vim-nox git
-name:Run Vader test suite
run:|
bash scripts/cicd/run_vader_tests_direct.sh
-name:Upload test results
uses:actions/upload-artifact@v4
if:always()
with:
name:test-results-linux-${{ matrix.python-version }}
path:|
test-results.json
test-logs/
results/
-name:Upload coverage reports
uses:codecov/codecov-action@v3
with:
file:./coverage.xml
flags:linux-python-${{ matrix.python-version }}
test-macos:
name:Test on macOS (Python ${{ matrix.python-version }})
runs-on:macos-latest
strategy:
matrix:
python-version:['3.10', '3.11', '3.12', '3.13']
fail-fast:false
steps:
-name:Checkout code
uses:actions/checkout@v4
with:
submodules:recursive
-name:Set up Python ${{ matrix.python-version }}
uses:actions/setup-python@v5
with:
python-version:${{ matrix.python-version }}
-name:Install Ruff
run:|
pip install ruff
-name:Install Vim
run:|
brew install vim
-name:Run Vader test suite
run:|
bash scripts/cicd/run_vader_tests_direct.sh
-name:Upload test results
uses:actions/upload-artifact@v4
if:always()
with:
name:test-results-macos-${{ matrix.python-version }}
path:|
test-results.json
test-logs/
results/
-name:Upload coverage reports
uses:codecov/codecov-action@v3
with:
file:./coverage.xml
flags:macos-python-${{ matrix.python-version }}
test-windows:
name:Test on Windows (Python ${{ matrix.python-version }})
runs-on:windows-latest
strategy:
matrix:
python-version:['3.10', '3.11', '3.12', '3.13']
fail-fast:false
steps:
-name:Checkout code
uses:actions/checkout@v4
with:
submodules:recursive
-name:Set up Python ${{ matrix.python-version }}
uses:actions/setup-python@v5
with:
python-version:${{ matrix.python-version }}
-name:Install Ruff
run:|
pip install ruff
-name:Install Vim
shell:pwsh
run:|
# Install Vim using Chocolatey (available on GitHub Actions Windows runners)
choco install vim -y
# Refresh PATH to make vim available
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
vim --version
-name:Run Vader test suite
shell:pwsh
run:|
pwsh scripts/cicd/run_vader_tests_windows.ps1
-name:Upload test results
uses:actions/upload-artifact@v4
if:always()
with:
name:test-results-windows-${{ matrix.python-version }}
path:|
test-results.json
test-logs/
results/
-name:Upload coverage reports
uses:codecov/codecov-action@v3
with:
file:./coverage.xml
flags:windows-python-${{ matrix.python-version }}
summary:
name:Generate Test Summary
runs-on:ubuntu-latest
needs:[test-linux, test-macos, test-windows]
if:github.event_name == 'pull_request'
steps:
-name:Checkout code
uses:actions/checkout@v4
with:
submodules:recursive
-name:Download all test results
uses:actions/download-artifact@v4
with:
path:test-results-artifacts
pattern:test-results-*
merge-multiple:false
-name:Install jq for JSON parsing
run:|
sudo apt-get update
sudo apt-get install -y jq
-name:Generate PR summary
id:generate_summary
run:|
bash scripts/cicd/generate_pr_summary.sh test-results-artifacts pr-summary.md
continue-on-error:true
-name:Post PR comment
uses:thollander/actions-comment-pull-request@v3
if:always() && github.event_name == 'pull_request'
with:
file-path:pr-summary.md
comment-tag:test-summary

[8]ページ先頭

©2009-2025 Movatter.jp