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

Feature/expand build matrix #30

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
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
69 changes: 69 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
test:
strategy:
matrix:
python-version: ["3.11", "3.10", "3.9", "3.8", "3.7"]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: "Set up python ${{ matrix.python-version }}"
id: setup-python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
#----------------------------------------------
# ----- install & configure poetry -----
#----------------------------------------------
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
#----------------------------------------------
# load cached venv if cache exists
#----------------------------------------------
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ matrix.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
#----------------------------------------------
# install dependencies if cache does not exist
#----------------------------------------------
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
#----------------------------------------------
# install your root project, if required
#----------------------------------------------
- name: Install library
run: poetry install --no-interaction
#----------------------------------------------
# Run tests
#----------------------------------------------
- name: Run tests
run: poetry run invoke test
#----------------------------------------------
# Build docs
#----------------------------------------------
- name: Build docs
run: poetry run invoke docs
#----------------------------------------------
# Deploy docs (if on master)
#----------------------------------------------
- name: Deploy docs 🚀
if: github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/_build
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

44 changes: 0 additions & 44 deletions appveyor.yml

This file was deleted.

7 changes: 5 additions & 2 deletions cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
"use_pytest": "y",
"use_pypi_deployment_with_travis": "y",
"add_pyup_badge": "n",
"command_line_interface": ["Click", "Argparse", "No command-line interface"],
"command_line_interface": ["Click", "No command-line interface"],
"create_author_file": "y",
"open_source_license": ["MIT", "BSD-3-Clause", "ISC", "Apache-2.0", "GPL-3.0-only", "Not open source"],
"use_google_docstrings": "y"
"use_google_docstrings": "y",
"_copy_without_render": [
"*.github/workflows/*.yml"
]
}
2 changes: 1 addition & 1 deletion docs/console_script_setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


Console Script Setup
=================
====================

Optionally, your package can include a console script using Click or argparse (Python 3.2+).

Expand Down
3 changes: 0 additions & 3 deletions docs/prompts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ Options

The following package configuration options set up different features for your project.

use_pypi_deployment_with_travis
Whether to use PyPI deployment with Travis.

command_line_interface
Whether to create a console script using Click. Console script entry point will match the project_slug. Options: ['Click', "No command-line interface"]

Expand Down
30 changes: 0 additions & 30 deletions docs/troubleshooting.rst

This file was deleted.

2 changes: 1 addition & 1 deletion docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ See :ref:`travis-pypi-setup` for more information.


Step 6: Set Up Read the Docs
--------------------------
----------------------------

`Read the Docs`_ hosts documentation for the open source community. Think of it as Continuous Documentation.

Expand Down
Loading