Update Test Workflow #340
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: Test Package | |
on: | |
pull_request: | |
types: [ synchronize ] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
python: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
platform: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- if: ${{ matrix.platform == 'ubuntu-latest' }} | |
name: (ubuntu) Install Testing Prereqs | |
run: | | |
make USE_SUDO=1 install-test-prereqs | |
- if: ${{ matrix.platform == 'macos-latest' }} | |
name: (macos) Install Testing Prereqs | |
run: | | |
cmake --help | |
git clone git@github.com:htacg/tidy-html5.git | |
cd build/cmake | |
cmake ../.. -DCMAKE_BUILD_TYPE=Release "-DCMAKE_OSX_ARCHITECTURES=x86_64;arm64" | |
make | |
# brew install tidy-html5 | |
# tidy --version | |
# which tidy | |
- name: Install Tox | |
run: make install-tox | |
- name: Test Build/Package with Tox | |
run: python -m tox -e py | |
- if: ${{ matrix.platform == 'ubuntu-latest' }} | |
name: (ubuntu) Run Tox pytests | |
run: | | |
python -m tox -e pytest-linux | |
- if: ${{ matrix.platform == 'macos-latest' }} | |
name: (macos) Run Tox pytests | |
run: | | |
python -m tox -e pytest-darwin | |