Skip to content

Commit

Permalink
run commands without using docker
Browse files Browse the repository at this point in the history
  • Loading branch information
hyihua committed Nov 24, 2023
1 parent e57637e commit 676043d
Showing 1 changed file with 34 additions and 8 deletions.
42 changes: 34 additions & 8 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,40 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Build and run Docker containers
run: docker-compose -f docker-compose.yml up --build --detach
# - name: Build and run Docker containers
# run: docker-compose -f docker-compose.yml up --build --detach

- name: Run Python tests
run: docker-compose -f docker-compose.yml exec myapp python manage.py test
# - name: Run Python tests
# run: docker-compose -f docker-compose.yml exec myapp python manage.py test

- name: Run JavaScript Tests
run: docker-compose -f docker-compose.yml exec myapp npm run test
# - name: Run JavaScript Tests
# run: docker-compose -f docker-compose.yml exec myapp npm run test

# - name: Stop and remove containers
# run: docker-compose -f path/to/your/docker-compose.yml down

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10

- name: Install Python Dependencies
run: |
pip install -r requirements.txt
- name: Stop and remove containers
run: docker-compose -f path/to/your/docker-compose.yml down
- name: Run Tests
run: |
python manage.py test
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Install Node.js Dependencies
run: |
npm install
- name: Run JavaScript Tests
run: |
npm run test

0 comments on commit 676043d

Please sign in to comment.