test #135
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
# .github/workflows/python-tests.yml | |
name: LaCE automated testing | |
on: | |
push: | |
branches: '*' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip==24.0 | |
pip install fdasrsf | |
pip install setuptools | |
pip install pytest wheel pytest-cov | |
- name: Install lace | |
run: pip install -e . | |
# Create a temporary directory to store the generated plots | |
- name: Create temporary directory | |
run: mkdir -p tmp/validation_figures | |
# Run the tests and specify the temporary directory as output_dir | |
- name: Run tests | |
timeout-minutes: 30 | |
run: | | |
pytest tests/test_lace.py | |
pytest tests/plot_mpg.py --output_dir=tmp/validation_figures/ | |
# Archive the generated plots | |
- name: Archive generated plots | |
uses: actions/upload-artifact@v4 | |
with: | |
name: validation-figures | |
path: tmp/validation_figures/*.png | |
# List the files in the temporary directory for debugging | |
- name: List generated plots | |
run: | | |
echo "Files in the tmp/validation_figures directory:" | |
ls tmp/validation_figures/ | |