Add smoke test #5
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: Run smoke tests | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
smoke-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Build project | |
run: | | |
python -m pip install uv | |
uv build | |
- name: Install unzipact -j smoke-test | |
run: sudo apt-get install unzip | |
- name: Unzip the wheel file | |
run: | | |
unzip dist/*.whl -d wheel_contents | |
- name: Check /assets/ folder | |
run: | | |
if [ ! "$(ls -A wheel_contents/kedro_sphinx_theme/assets/styles/*.css)" ]; then echo "CSS files missing in /assets/"; exit 1; fi | |
- name: Check /theme/kedro-sphinx-theme/ folder | |
run: | | |
if [ ! "$(ls -A wheel_contents/kedro_sphinx_theme/theme/kedro-sphinx-theme/*.html)" ]; then echo "HTML files missing in /theme/kedro-sphinx-theme/"; exit 1; fi | |
- name: Check theme.conf file | |
run: | | |
if [ ! -f "wheel_contents/kedro_sphinx_theme/theme/kedro-sphinx-theme/theme.conf" ]; then echo "theme.conf file missing in /theme/kedro-sphinx-theme/"; exit 1; fi |