Skip to content

build(deps-dev): bump @babel/preset-env from 7.25.2 to 7.25.3 in /server #753

build(deps-dev): bump @babel/preset-env from 7.25.2 to 7.25.3 in /server

build(deps-dev): bump @babel/preset-env from 7.25.2 to 7.25.3 in /server #753

Workflow file for this run

name: server tests
on:
push:
branches: [master]
paths:
- server/**
pull_request:
branches: [master]
paths:
- server/**
jobs:
test-runners:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.10", "3.11", "3.12"]
env:
SHIPPER_SECRET_KEY: "duk4hvedu3zxnmw@shnjw7z^)x#wcm@cj05t5f&#90rx-g44d2"
SHIPPER_DEBUG: 1
SHIPPER_ALLOWED_HOSTS: "localhost 127.0.0.1"
SHIPPER_CSRF_TRUSTED_ORIGINS: "http://localhost/"
SHIPPER_SECURE_SSL_REDIRECT: 0
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
working-directory: ./server
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install coverage
- name: Run Tests
working-directory: ./server
run: |
python manage.py test
- name: Generate coverage report
working-directory: ./server
run: |
coverage run manage.py test
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-data-${{ matrix.python-version }}
path: ${{ github.workspace }}/server/.coverage.*
codecov-coverage:
runs-on: ubuntu-latest
needs: test-runners
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install coverage
- name: Download coverage reports from all runners
uses: actions/download-artifact@v4.1.8
with:
path: ${{ github.workspace }}/
merge-multiple: true
- name: Combine coverage reports and generate Cobertura XML report
run: |
coverage combine
coverage xml
- name: Upload finalized coverage report
uses: codecov/codecov-action@v4.5.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
fail_ci_if_error: true