Skip to content

Merge pull request #26 from tawanda-kembo/ci/streamline-release-process #8

Merge pull request #26 from tawanda-kembo/ci/streamline-release-process

Merge pull request #26 from tawanda-kembo/ci/streamline-release-process #8

Workflow file for this run

name: Test and Lint
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test-and-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests with pytest
run: pytest tests/ --cov=code_collator --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Lint with flake8
run: flake8 code_collator/ tests/