test py311 on mac 13 and 14 #19
Workflow file for this run
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
name: check-build | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
env: | |
PYTHONUTF8: "1" | |
# only run one at a time per branch | |
concurrency: | |
group: check-build-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check-build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-13, macos-14] #[ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.11"] | |
#python-version: ["3.8", "3.9", "3.10"]#, "3.11"]#, "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# - if: matrix.os == 'ubuntu-latest' | |
# name: Install Linux requirements | |
# run: sudo apt-get install libmecab-dev | |
- if: ${{ matrix.os == 'macos-13' || matrix.os == 'macos-14' }} | |
name: Install Mac OS requirements | |
run: brew install bash | |
- if: matrix.os == 'windows-latest' | |
name: Install Windows requirements | |
run: choco install wget unzip | |
- name: Install python dependencies | |
run: | | |
pip install ".[dev,ja,ko]" | |
# python -m pip install --upgrade pip | |
# pip install .[dev] | |
# pip install .[ja] | |
# pip install .[ko] | |
- name: Lint with Mypy | |
run: mypy sacrebleu scripts test | |
- name: Lint with Ruff | |
uses: chartboost/ruff-action@v1 | |
- name: Python pytest test suite | |
run: python -m pytest | |
- name: CLI bash test suite | |
shell: bash | |
run: ./test.sh | |
- name: Build | |
run: python setup.py sdist bdist_wheel |