-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First changes in view of Fractal V2 #8
Conversation
Useful command for testing
|
The template now comes with a GitHub action that runs this script: #!/bin/bash
# Exit immediately if a command exits with a non-zero status
set -e
# Create empty folder (fail if it already exists)
FOLDER="/tmp/new-project-folder"
# Generate a new project based on the HEAD git reference
echo "Now generate a new project copy in $FOLDER"
copier copy . "$FOLDER" --data-file tests/answers.yml --vcs-ref=HEAD
# Move to the new folder
cd "$FOLDER"
# Install the new project
python3 -m pip install -e .[dev]
# Generate the manifest
python3 src/my_project/dev/create_manifest.py
# Run tests
python3 -m pytest tests |
Just for my understanding: This script checks that the manifest can be build & that the tests run? |
Or is the validity of the manifest tested with that? |
The script simulates what a new task developer would do:
Caveat: this flow differs from what a user would face, because it uses the current HEAD from git (which is useful so that we can run it from the PR branch). Note that the actual usage of |
I now added:
|
Close #7