Skip to content

Commit

Permalink
Merge pull request #8 from ARYAN-NIKNEZHAD/chore/CI-action-config
Browse files Browse the repository at this point in the history
🔧  CI action config(base)
  • Loading branch information
sepehr-akbarzadeh authored Aug 22, 2024
2 parents b9a1599 + 671e94f commit 81bf638
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 81bf638

Please sign in to comment.