Skip to content

Commit

Permalink
setup ci (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen authored Jul 19, 2022
1 parent b3117cb commit 6ecdd73
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: python-package
name: github-runner-python-package

on:
push:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/pi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: pi-runner-python-package

on:
push:
branches: [ master, develop]
pull_request:
branches: [ master, develop ]

jobs:
pkg-install:
runs-on: self-hosted
steps:
- uses: actions/checkout@v2
- name: Install package
run: |
python --version
pip install -e .
pkg-test:
runs-on: self-hosted
needs: pkg-install
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
pip install -e .
pip install -r .github/workflows/requirements.txt
- name: Run unittests
run: |
coverage run -m unittest discover test/
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
flags: unittests
fail_ci_if_error: true

0 comments on commit 6ecdd73

Please sign in to comment.