Skip to content

Updating github actions #73

Updating github actions

Updating github actions #73

Workflow file for this run

name: Unit and E2E Testing
on:
push:
branches:
- "dev"
- "master"
pull_request:
branches:
- "dev"
- "master"
jobs:
testing:
name: Code Testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@master
with:
python-version: 3.9
- name: Preparing the environment
run: |
python -m pip install --upgrade pip
python -m pip install pip-tools
pip install pytest pytest-cov
pip-compile pyproject.toml -o requirements-build.txt --all-extras
pip install -r requirements-build.txt
- name: Starting Testing Suites
run: |
ENMA_CACHING_STATE=disabled \
pytest --cov=. --cov-report=xml ./tests
- name: Upload Report to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: pytest