Skip to content

Commit

Permalink
build: added CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shafayetShafee committed Aug 12, 2024
1 parent f7067f3 commit b2ff8af
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ci-cd

on: [push, pull_request]

jobs:
ci:
runs-on: ubuntu-latest

steps:
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Check-out repository
uses: actions/checkout@v2

- name: Install poetry
uses: snok/install-poetry@v1

- name: Install package
run: poetry install

- name: Test with pytest
run: poetry run pytest tests/ --cov=pycounts --cov-report=xml

- name: Use Codecov to track coverage
uses: codecov/codecov-action@v2
with:
files: ./coverage.xml

- name: Build documentation
run: poetry run make html --directory docs/

0 comments on commit b2ff8af

Please sign in to comment.