Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Commit

Permalink
Merge 27f3118 into ec46b95
Browse files Browse the repository at this point in the history
  • Loading branch information
vokimon committed Dec 16, 2021
2 parents ec46b95 + 27f3118 commit 5648f7b
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events
push:
pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
env:
TRAVIS: 'true' # Skip tests requiring data
strategy:
matrix:
python-version:
- '2.7' # the one in production
#- '3.8'
#- '3.9'
name: Python ${{ matrix.python-version }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install system dependencies
run: |
sudo apt install libpq-dev libyaml-dev libxml2-dev libxslt1-dev
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: BSFishy/pip-action@v1
with:
packages: |
coveralls
pytest
pytest-cov
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Unit tests
run: |
pytest --cov switchingreport switchingreport
- uses: actions/upload-artifact@master
if: failure() && hashFiles('b2bdata/*result*')
with:
name: b2b-results
path: |
b2bdata/*result*
- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true
flag-name: Unit tests

coveralls_finish:
needs: build
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

[coverage:run]
relative_files = True
omit =
**/*test.py

0 comments on commit 5648f7b

Please sign in to comment.