Skip to content

Update ci.yml

Update ci.yml #2

Workflow file for this run

name: CI workflow
on:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
jobs:
unit_testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10.6"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mongomock
pip install -r API/requirements.txt
- uses: ricardochaves/[email protected]
with:
python-root-list: "api"
use-pylint: false
use-pycodestyle: false
use-flake8: true
use-black: true
use-mypy: false
use-isort: false
extra-flake8-options: "--exit-zero --max-line-length=127"
- name: Run tests
run: |
python API/test_api.py