Skip to content

bump to v3

bump to v3 #35

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r api/requirements.txt
- name: Run backend tests
run: |
export PYTHONPATH=$(pwd)
pytest --cov=api api/tests/ --cov-report=xml
- name: Upload backend coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
flags: backend
- name: Upload backend coverage to Codecov via PIP CLI
run: |
pip install codecov-cli
codecovcli --verbose upload-process --disable-search -n 'backend-job'-${{ github.run_id }} -F backend -f coverage.xml -t ${{ secrets.CODECOV_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install frontend dependencies
run: npm install
- name: Run frontend tests
run: npm run test
- name: Upload frontend coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: frontend