Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie committed Nov 25, 2024
1 parent 2b6cab1 commit 0840733
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 19 deletions.
52 changes: 33 additions & 19 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,43 @@ on:
branches: [ "Refactoring" ]

jobs:
# Build Job
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- 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: |
python -m pip install --upgrade pip
pip install -r requirements.txt
working-directory: ./CargoHub

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
working-directory: ./CargoHub

- name: Test with pytest
run: |
pytest
pytest --cov --cov-report term --cov-report xml:coverage.xml
working-directory: ./CargoHub
# Test Job
test:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
python-version: [3.8]
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: |
python -m pip install --upgrade pip
pip install -r requirements.txt
working-directory: ./CargoHub
- name: Test with pytest
run: |
pytest
working-directory: ./CargoHub
Binary file modified CargoHub/requirements.txt
Binary file not shown.
Binary file removed requirements.txt
Binary file not shown.

0 comments on commit 0840733

Please sign in to comment.