Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to Github Actions #4

Merged
merged 3 commits into from
Jul 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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