Skip to content

Commit

Permalink
Add workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasliwal17 committed May 14, 2023
1 parent fa04fd2 commit 62323a8
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pytest_coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Pytest and code coverage

on: [push]


permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest coverage
pip install -r requirements.txt
- name: Test with pytest and report code coverage
run: |
coverage run -m --source=federa pytest -v test/unittest
continue-on-error: true
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
27 changes: 27 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Ubuntu (latest)

on: [push]

permissions:
contents: read


jobs:
interactive-kvasir: # from interactive-kvasir.yml
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Interactive API - pytorch_kvasir_unet
run: |
pip install torch==1.13.1
pip install torchvision==0.14.1
cd test
python test_algorithms.py
46 changes: 46 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Windows (latest)

on: [push]

permissions:
contents: read


jobs:

interactive-kvasir: # from interactive-kvasir.yml
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Interactive API - pytorch_kvasir_unet
run: |
pip install torch==1.13.1
pip install torchvision==0.14.1
cd test
python test_algorithms.py
cli: # from taskrunner.yml
needs: [interactive-kvasir]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test TaskRunner API
run: |
cd test
python test_algorithms.py
Empty file added .gitignore
Empty file.

0 comments on commit 62323a8

Please sign in to comment.