Skip to content

Commit

Permalink
Merge pull request #37 from bulkan/github-actions
Browse files Browse the repository at this point in the history
[ci] introduce GitHub Actions
  • Loading branch information
lucagiove authored May 20, 2021
2 parents e53acef + a2daa72 commit 960826d
Show file tree
Hide file tree
Showing 18 changed files with 1,724 additions and 15 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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: Python application

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest coverage
python -m pip install -e .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with Robot Framework and coverage
run: |
coverage erase
coverage run --branch --source ArchiveLibrary/ -m robot --loglevel trace:info --pythonpath ArchiveLibrary/ --outputdir ./tests-report --consolecolors ansi atests
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/bulkan/robotframework-archivelibrary.png?branch=master)](https://travis-ci.org/bulkan/robotframework-archivelibrary)
[![Python application](https://github.com/bulkan/robotframework-archivelibrary/actions/workflows/python-app.yml/badge.svg)](https://github.com/bulkan/robotframework-archivelibrary/actions/workflows/python-app.yml)
[![PyPi downloads](https://pypip.in/d/robotframework-archivelibrary/badge.png)](https://crate.io/packages/robotframework-archivelibrary/)

A keyword library for Robot Framework
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions doc/generate_doc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
# I know it's bad but there is no other way to keep docstring working with this decorator
SCRIPT_PATH=`dirname "$0"`
python -m robot.libdoc ${SCRIPT_PATH}/../ArchiveLibrary/ ${SCRIPT_PATH}/../index.html
Loading

0 comments on commit 960826d

Please sign in to comment.