[pre-commit.ci] pre-commit autoupdate #62
This file contains hidden or 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
name: Tests | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
python-version: ["3.11", "3.12"] | |
build-version: ["3.11", "3.12"] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install tree (macOS) | |
if: matrix.os == 'macos-latest' | |
run: brew install tree | |
- name: Install tree (Windows) | |
if: matrix.os == 'windows-latest' | |
run: Install-Module PSScriptTools -scope CurrentUser -force | |
- name: Install tree (Linux) | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt install tree | |
- name: Install the package | |
run: pip install . | |
- name: Run the bootstrapper | |
run: bootstrapper tr -b ${{ matrix.build-version }} | |
- name: See results (non-Windows) | |
if: matrix.os != 'windows-latest' | |
run: | | |
cd python-docs-tr | |
tree . -L 2 | |
echo "================================" | |
echo "Check if everything is OK (clean paths, correct syntax)" | |
echo "================================" | |
cat about.po | |
echo "================================" | |
echo "Check if everything is OK (clean paths, correct syntax)" | |
echo "================================" | |
cat library/functions.po | |
- name: See results (Windows) | |
if: matrix.os == 'windows-latest' | |
run: | | |
cd python-docs-tr | |
Show-Tree . -Depth 2 -ShowItem | |
echo "================================" | |
echo "Check if everything is OK (clean paths, correct syntax)" | |
echo "================================" | |
cat about.po | |
echo "================================" | |
echo "Check if everything is OK (clean paths, correct syntax)" | |
echo "================================" | |
cat library/functions.po |