This repository has been archived by the owner on Nov 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e43db4
commit 302bf52
Showing
9 changed files
with
224 additions
and
136 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# These are supported funding model platforms | ||
|
||
github: RobertoPrevato |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
name: Build | ||
|
||
on: | ||
release: | ||
types: [published] | ||
push: | ||
branches: | ||
- main | ||
- ci | ||
pull_request: | ||
branches: | ||
- "*" | ||
|
||
env: | ||
PROJECT_NAME: roconfiguration | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8, 3.9] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
with: | ||
fetch-depth: 9 | ||
submodules: false | ||
|
||
- name: Use Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- uses: actions/cache@v1 | ||
id: depcache | ||
with: | ||
path: deps | ||
key: requirements-pip-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }} | ||
|
||
- name: Download dependencies | ||
if: steps.depcache.outputs.cache-hit != 'true' | ||
run: | | ||
pip download --dest=deps -r requirements.txt | ||
- name: Install dependencies | ||
run: | | ||
pip install -U --no-index --find-links=deps deps/* | ||
- name: Run tests | ||
run: | | ||
flake8 && pytest --doctest-modules --junitxml=junit/pytest-results-${{ matrix.python-version }}.xml --cov=$PROJECT_NAME --cov-report=xml tests/ | ||
- name: Upload pytest test results | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: pytest-results-${{ matrix.python-version }} | ||
path: junit/pytest-results-${{ matrix.python-version }}.xml | ||
if: always() | ||
|
||
- name: Codecov | ||
run: | | ||
bash <(curl -s https://codecov.io/bash) | ||
- name: Install distribution dependencies | ||
run: pip install --upgrade twine setuptools wheel | ||
if: matrix.python-version == 3.8 || matrix.python-version == 3.9 | ||
|
||
- name: Create distribution package | ||
run: python setup.py sdist bdist_wheel | ||
if: matrix.python-version == 3.8 || matrix.python-version == 3.9 | ||
|
||
- name: Upload distribution package | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: dist-package-${{ matrix.python-version }} | ||
path: dist | ||
if: matrix.python-version == 3.8 || matrix.python-version == 3.9 | ||
|
||
publish: | ||
runs-on: ubuntu-18.04 | ||
needs: build | ||
if: github.event_name == 'release' | ||
steps: | ||
- name: Download a distribution artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: dist-package-3.9 | ||
path: dist | ||
- name: Publish distribution 📦 to Test PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
skip_existing: true | ||
user: __token__ | ||
password: ${{ secrets.test_pypi_password }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.pypi_password }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# 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.0.9] - 2022-05-23 :octocat: | ||
- Completely migrates to GitHub Workflows | ||
- Improves build to test Python 3.6 and 3.9 | ||
- Adds a changelog | ||
- Improves badges |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.