Skip to content

Commit

Permalink
Added CI for codeconv
Browse files Browse the repository at this point in the history
  • Loading branch information
Pringled committed Sep 27, 2024
1 parent 6ce5774 commit 01db9b5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/codeconv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run tests and upload coverage

on:
push

jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4

- name: Install dependencies
run: pip install pytest pytest-cov

- name: Run tests
run: pytest --cov --cov-report=xml

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ repos:
description: Prevent giant files from being committed.
- id: check-case-conflict
description: Check for files with names that would conflict on case-insensitive filesystems like MacOS/Windows.
- id: check-yaml
description: Check yaml files for syntax errors.
- repo: https://github.com/jsh9/pydoclint
rev: 0.5.3
hooks:
Expand Down

0 comments on commit 01db9b5

Please sign in to comment.