adding updated MEI files, with metadata and new pieces. CORRECT #68
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: crim_test | |
on: [push] # activates the workflow on Push | |
jobs: | |
test_crim_app: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
- name: Install dependencies | |
run: | | |
pip install flake8 | |
pip install -r test_requirements.txt # install dependencies from the Deveopment Requirements | |
playwright install # install playwright browsers | |
cp "crim/test_settings_production.py" "crim/settings_production.py" # copy the Production Settings file | |
- name: Make Migrations | |
run: | | |
python manage.py makemigrations # making migrations | |
python manage.py migrate # migrating | |
- name: Import Definitions | |
run: python manage.py loaddata crim/fixtures/definitions.json # importing definitions | |
- name: Testing Models | |
run: python manage.py test crim.tests.test_models | |
- name: Testing Views | |
run: python manage.py test crim.tests.test_views | |
- name: Testing API | |
run: python manage.py test crim.tests.test_API_views | |
- name: Clearing Data for Functional Testing | |
run: | | |
python manage.py flush --no-input | |
python manage.py makemigrations | |
python manage.py migrate | |
- name: Loading Data for Functional Testing | |
run: | | |
python manage.py loaddata crim/fixtures/data-2023-05/definition.json | |
python manage.py loaddata crim/fixtures/data-2023-05/genre.json | |
python manage.py loaddata crim/fixtures/data-2023-05/person.json | |
python manage.py loaddata crim/fixtures/data-2023-05/mass.json | |
python manage.py loaddata crim/fixtures/data-2023-05/piece.json | |
python manage.py loaddata crim/fixtures/data-2023-05/part.json | |
python manage.py loaddata crim/fixtures/data-2023-05/phrase.json | |
python manage.py loaddata crim/fixtures/data-2023-05/voice.json | |
python manage.py loaddata crim/fixtures/data-2023-05/treatise.json | |
python manage.py loaddata crim/fixtures/data-2023-05/source.json | |
python manage.py loaddata crim/fixtures/data-2023-05/roletype.json | |
python manage.py loaddata crim/fixtures/data-2023-05/role.json | |
python manage.py loaddata crim/fixtures/data-2023-05/observation.json | |
python manage.py loaddata crim/fixtures/data-2023-05/relationship.json | |
python manage.py loaddata crim/fixtures/data-2023-05/flatpages.json | |
- name: Running Server and FT | |
run: | | |
python manage.py runserver & | |
python manage.py test crim.tests.test_functional | |
- name: Flake8 Testing | |
run: flake8 . --exit-zero --max-line-length=127 # run flake8 test | |
- name: Remove the Settings file copy and the Fixtures file | |
run: | | |
rm "crim/settings_production.py" # removing the copy of Production Settings | |
- name: Done Testing | |
run: echo "Done Testing" # echoing |