Skip to content

Commit

Permalink
basic GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikyadav committed Oct 21, 2024
1 parent ddf8d21 commit 4823d74
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Test"
on: [push]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install python
uses: actions/setup-python@v4
with:
python-version: 3.8

- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -r requirements.txt
python -m pip install -e .[test]
- name: Run linter
run: pre-commit run --all-files

- name: Run tests
run: python -m pytest --cov --cov-config=.coveragerc

0 comments on commit 4823d74

Please sign in to comment.