Skip to content

Commit

Permalink
Merge pull request #4 from Accruent/github_actions
Browse files Browse the repository at this point in the history
Move to Github Actions
  • Loading branch information
Wolfe1 committed Jul 6, 2021
2 parents a901309 + 8266093 commit 4f71707
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 19 deletions.
1 change: 0 additions & 1 deletion .coveralls.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "Code scanning - action"

on:
pull_request:
schedule:
- cron: '0 7 * * 1'

jobs:
CodeQL-Build:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
40 changes: 40 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.6, 3.7, 3.8 ]
include:
- os: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install coveralls mock pytest-cov
- name: Run Unit Tests
run: |
pytest --cov SmtpLibrary -v tests/base.py
- name: Coveralls
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
flag-name: run-${{ matrix.python-version }}
parallel: true
run: |
coveralls --service=github
17 changes: 0 additions & 17 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,5 +1,5 @@
# Robotframework-smtplibrary
[![Build Status](https://travis-ci.org/Accruent/robotframework-smtplibrary.svg?branch=master)](https://travis-ci.org/Accruent/robotframework-smtplibrary)
[![tests](https://github.com/Accruent/robotframework-smtplibrary/actions/workflows/run-tests.yml/badge.svg?branch=master)](https://github.com/Accruent/robotframework-smtplibrary/actions/workflows/run-tests.yml)
[![Coverage Status](https://coveralls.io/repos/github/Accruent/robotframework-smtplibrary/badge.svg?branch=master)](https://coveralls.io/github/Accruent/robotframework-smtplibrary?branch=master)
[![CodeFactor](https://www.codefactor.io/repository/github/accruent/robotframework-smtplibrary/badge)](https://www.codefactor.io/repository/github/accruent/robotframework-smtplibrary)

Expand Down

0 comments on commit 4f71707

Please sign in to comment.