Skip to content

Commit

Permalink
Merge pull request #33 from ARYAN-NIKNEZHAD/chore/CI-actions
Browse files Browse the repository at this point in the history
πŸ’š Add CI workflow for automated testing and code coverage reporting
  • Loading branch information
sepehr-akbarzadeh authored Aug 15, 2024
2 parents 6392439 + 1a98b43 commit 19fc88e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install coverage codecov pytest
pip install -r packages/requirements-dev.txt
- name: Run tests
run: |
coverage run -m pytest
- name: Generate coverage report
run: coverage xml
- name: Upload coverage to Codecov
run: codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 19fc88e

Please sign in to comment.