diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index c995381..8f74412 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -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 diff --git a/CargoHub/requirements.txt b/CargoHub/requirements.txt index 45756ac..6eba693 100644 Binary files a/CargoHub/requirements.txt and b/CargoHub/requirements.txt differ diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 6eba693..0000000 Binary files a/requirements.txt and /dev/null differ