Skip to content

Commit

Permalink
Merge pull request #9 from ubclaunchpad/kevinrczhang-patch-1
Browse files Browse the repository at this point in the history
Create django.yml
  • Loading branch information
kevinrczhang authored Oct 24, 2024
2 parents 42c4976 + b3dd080 commit 5afe843
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 4 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Django CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.12]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
cd core
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Django Tests
run: |
cd core
python manage.py test
- name: Run PIP Tests
run: |
cd i18nilize
python3 -m tests.test_read_file
python3 -m tests.test_parse_json
8 changes: 4 additions & 4 deletions core/i18nilize/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __str__(self):
return str(self.value)

class Translation(models.Model):
token = models.foreignKey(Token, on_delete=models.CASCADE)
original_word = models.charField(max_length = 255)
translated_word = models.charField(max_length = 255)
language = models.charField(max_length = 255)
token = models.ForeignKey(Token, on_delete=models.CASCADE)
original_word = models.CharField(max_length = 255)
translated_word = models.CharField(max_length = 255)
language = models.CharField(max_length = 255)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added i18nilize/tests/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 5afe843

Please sign in to comment.