Skip to content

Commit

Permalink
Add initial CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaim committed Aug 6, 2024
1 parent f3176c6 commit 082ee5b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

name: main

on:
push:
branches: [ "master", "devel" ]
pull_request:
branches: [ "master", "devel" ]

jobs:
quicktest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y python3 python3-pip

- name: Run build
run: pip3 install .[test]

- name: Run tests and collect coverage
run: pytest -v -m "not slow" --cov=./src

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 082ee5b

Please sign in to comment.