Skip to content

Commit

Permalink
Github Actions for pyefd
Browse files Browse the repository at this point in the history
Changelog added
Updated text
  • Loading branch information
hbldh committed Sep 28, 2020
1 parent e5d2a7f commit 758c448
Show file tree
Hide file tree
Showing 12 changed files with 309 additions and 135 deletions.
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Description

Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.

### What I Did

```
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
```
45 changes: 45 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and Test

on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]

jobs:
build_linux:
name: "Build and test"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip. setuptools and wheel
run: python -m pip install --upgrade pip setuptools wheel

- name: Install development dependencies
run: pip install flake8 pytest pytest-cov
- 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: Install package as editable
run: pip install -e .
- name: Test with pytest
run: |
pytest tests --junitxml=junit/test-results-${{ matrix.os }}-${{ matrix.python-version }}.xml --cov=com --cov-report=xml --cov-report=html
- name: Upload pytest test results
uses: actions/upload-artifact@v1
with:
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
path: junit/test-results-${{ matrix.os }}-${{ matrix.python-version }}.xml
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
31 changes: 31 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflows will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

name: Upload Python Package

on:
release:
types: [created]

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
97 changes: 97 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [1.4.1] (2020-09-28)

### Added

- Added `CHANGELOG.md`

### Changed

- Change CI from Azure Devops to Github Actions

## [1.4.0] (2019-07-27)

### Changed

- Merged PR #4: Vectorized contour reconstruction function

## [1.3.0] (2019-06-18)

### Changed

- Merged PR #2: Numpy vectorized efd
- Moved from Travis CI to Azure Pipelines
- Replaced rst with markdown

## [1.2.0] (2018-06-14)

### Changed

- Updated setup.py
- Updated numpy requirement

### Added

- Added Pipfile
- Ran Black on code
- Testing on 3.6

## [1.1.0] (2018-06-13)

### Added

- New example for OpenCV
- Updated documentation

## [1.0.0] (2016-04-19)

### Changed

- Deemed stable enough for version 1.0 release

### Added

- Created documentation.

## [0.1.2] (2016-02-29)

### Changed

- Testing with pytest instead of nosetests.

### Added

- Added Coveralls use.

## [0.1.1] (2016-02-17)

### Fixed

- Fixed MANIFEST

### Added

- Added LICENSE file that was missing.

## 0.1.0 (2016-02-09)

### Added

- Initial release


[Unreleased]: https://github.com/hbldh/pyefd/compare/v1.4.1...HEAD
[1.4.1]: https://github.com/hbldh/pyefd/compare/v1.4.1...v1.4.0
[1.4.0]: https://github.com/hbldh/pyefd/compare/v1.4.0...v1.3.0
[1.3.0]: https://github.com/hbldh/pyefd/compare/v1.3.0...v1.2.0
[1.2.0]: https://github.com/hbldh/pyefd/compare/v1.2.0...v1.1.0
[1.1.0]: https://github.com/hbldh/pyefd/compare/v1.1.0...v1.0.0
[1.0.0]: https://github.com/hbldh/pyefd/compare/v1.0.0...v0,1.2
[0.1.2]: https://github.com/hbldh/pyefd/compare/v0.1.2...v0,1.1
[0.1.1]: https://github.com/hbldh/pyefd/compare/v0.1.1...v0,1.0
34 changes: 0 additions & 34 deletions HISTORY.md

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Henrik Blidh
Copyright (c) 2020 Henrik Blidh

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
16 changes: 0 additions & 16 deletions Pipfile

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
PyEFD
=====

[![Build Status](https://dev.azure.com/hbldh/github/_apis/build/status/hbldh.pyefd?branchName=master)](https://dev.azure.com/hbldh/github/_build/latest?definitionId=6&branchName=master)
[![image](https://travis-ci.org/hbldh/pyefd.svg?branch=master)](https://travis-ci.org/hbldh/pyefd)
[![Build and Test](https://github.com/hbldh/pyefd/workflows/Build%20and%20Test/badge.svg)](https://github.com/hbldh/pyefd/actions?query=workflow%3A%22Build+and+Test%22)
[![Documentation Status](https://readthedocs.org/projects/pyefd/badge/?version=latest)](http://pyefd.readthedocs.org/en/latest/?badge=latest)
[![image](http://img.shields.io/pypi/v/pyefd.svg)](https://pypi.python.org/pypi/pyefd/)
[![image](http://img.shields.io/pypi/l/pyefd.svg)](https://pypi.python.org/pypi/pyefd/)
Expand Down
74 changes: 0 additions & 74 deletions azure-pipelines.yml

This file was deleted.

2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

# General information about the project.
project = u"PyEFD"
copyright = u"2016, Henrik Blidh"
copyright = u"2020, Henrik Blidh"
author = u"Henrik Blidh"

# The version info for the project you're documenting, acts as replacement for
Expand Down
Loading

0 comments on commit 758c448

Please sign in to comment.