Skip to content

Test using bash on windows, ubuntu and macos. #29

Test using bash on windows, ubuntu and macos.

Test using bash on windows, ubuntu and macos. #29

Workflow file for this run

# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: Bradley M. Bell <[email protected]>
# SPDX-FileContributor: 2024 Bradley M. Bell
# ----------------------------------------------------------------------------
# Use the following to verify yml syntax before commiting:
# https://yamlchecker.com/
#
# The name for this workflow
name: bash-workflow
#
# A short description of this workflow
run-name: Test using bash on windows, ubuntu and macos.
#
# This worflow will be run on any push to the repository
on:
push:
branches:
master
#
jobs:
#
check_all:
#
strategy:
matrix:
os: [ windows-latest, ubuntu-latest , macos-latest ]
#
runs-on: ${{ matrix.os }}
steps:
#
# actions
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
#
- name: Using bash
shell: bash -el {0}
run: |
echo 'matrix.os = ${{ matrix.os }}'
prefix='build/prefix'
pip install pytest
pip install --prefix=$prefix .
export PYTHONPATH=$(find $prefix -name 'site-packages')
sed -i -e "s|'pyenchant'|'pyspellchecker'|" xrst.toml
#
if [ '${{ matrix.os }}' == 'windows-latest' ]
then
bin_dir='Scripts'
else
bin_dir='bin'
fi
export PATH="$prefix/$bin_dir:$PATH"
sed -i -e "s|^ *python_executable,.*|'xrst', '--suppress_spell_warnings',|" pytest/test_rst.py
pytest -s pytest
# bin/check_all.sh