generated from aboutcode-org/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: ziadhany <[email protected]>
- Loading branch information
Showing
10 changed files
with
325 additions
and
271 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,34 +1,34 @@ | ||
#name: CI Documentation | ||
# | ||
#on: [push, pull_request] | ||
# | ||
#jobs: | ||
# build: | ||
# runs-on: ubuntu-20.04 | ||
# | ||
# strategy: | ||
# max-parallel: 4 | ||
# matrix: | ||
# python-version: [3.9] | ||
# | ||
# steps: | ||
# - name: Checkout code | ||
# uses: actions/checkout@v3 | ||
# | ||
# - name: Set up Python ${{ matrix.python-version }} | ||
# uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: ${{ matrix.python-version }} | ||
# | ||
# - name: Install Dependencies | ||
# run: pip install -e .[docs] | ||
# | ||
# - name: Check Sphinx Documentation build minimally | ||
# working-directory: ./docs | ||
# run: sphinx-build -E -W source build | ||
# | ||
# - name: Check for documentation style errors | ||
# working-directory: ./docs | ||
# run: ./scripts/doc8_style_check.sh | ||
# | ||
# | ||
name: CI Documentation | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.9] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install Dependencies | ||
run: pip install -e .[docs] | ||
|
||
- name: Check Sphinx Documentation build minimally | ||
working-directory: ./docs | ||
run: sphinx-build -E -W source build | ||
|
||
- name: Check for documentation style errors | ||
working-directory: ./docs | ||
run: ./scripts/doc8_style_check.sh | ||
|
||
|
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 |
---|---|---|
@@ -1,83 +1,83 @@ | ||
#name: Create library release archives, create a GH release and publish PyPI wheel and sdist on tag in main branch | ||
# | ||
# | ||
## This is executed automatically on a tag in the main branch | ||
# | ||
## Summary of the steps: | ||
## - build wheels and sdist | ||
## - upload wheels and sdist to PyPI | ||
## - create gh-release and upload wheels and dists there | ||
## TODO: smoke test wheels and sdist | ||
## TODO: add changelog to release text body | ||
# | ||
## WARNING: this is designed only for packages building as pure Python wheels | ||
# | ||
#on: | ||
# workflow_dispatch: | ||
# push: | ||
# tags: | ||
# - "v*.*.*" | ||
# | ||
#jobs: | ||
# build-pypi-distribs: | ||
# name: Build and publish library to PyPI | ||
# runs-on: ubuntu-20.04 | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - name: Set up Python | ||
# uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: 3.9 | ||
# | ||
# - name: Install pypa/build | ||
# run: python -m pip install build --user | ||
# | ||
# - name: Build a binary wheel and a source tarball | ||
# run: python -m build --sdist --wheel --outdir dist/ | ||
# | ||
# - name: Upload built archives | ||
# uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: pypi_archives | ||
# path: dist/* | ||
# | ||
# | ||
# create-gh-release: | ||
# name: Create GH release | ||
# needs: | ||
# - build-pypi-distribs | ||
# runs-on: ubuntu-20.04 | ||
# | ||
# steps: | ||
# - name: Download built archives | ||
# uses: actions/download-artifact@v3 | ||
# with: | ||
# name: pypi_archives | ||
# path: dist | ||
# | ||
# - name: Create GH release | ||
# uses: softprops/action-gh-release@v1 | ||
# with: | ||
# draft: true | ||
# files: dist/* | ||
# | ||
# | ||
# create-pypi-release: | ||
# name: Create PyPI release | ||
# needs: | ||
# - create-gh-release | ||
# runs-on: ubuntu-20.04 | ||
# | ||
# steps: | ||
# - name: Download built archives | ||
# uses: actions/download-artifact@v3 | ||
# with: | ||
# name: pypi_archives | ||
# path: dist | ||
# | ||
# - name: Publish to PyPI | ||
# if: startsWith(github.ref, 'refs/tags') | ||
# uses: pypa/gh-action-pypi-publish@release/v1 | ||
# with: | ||
# password: ${{ secrets.PYPI_API_TOKEN }} | ||
name: Create library release archives, create a GH release and publish PyPI wheel and sdist on tag in main branch | ||
|
||
|
||
# This is executed automatically on a tag in the main branch | ||
|
||
# Summary of the steps: | ||
# - build wheels and sdist | ||
# - upload wheels and sdist to PyPI | ||
# - create gh-release and upload wheels and dists there | ||
# TODO: smoke test wheels and sdist | ||
# TODO: add changelog to release text body | ||
|
||
# WARNING: this is designed only for packages building as pure Python wheels | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
jobs: | ||
build-pypi-distribs: | ||
name: Build and publish library to PyPI | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install pypa/build | ||
run: python -m pip install build --user | ||
|
||
- name: Build a binary wheel and a source tarball | ||
run: python -m build --sdist --wheel --outdir dist/ | ||
|
||
- name: Upload built archives | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: pypi_archives | ||
path: dist/* | ||
|
||
|
||
create-gh-release: | ||
name: Create GH release | ||
needs: | ||
- build-pypi-distribs | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Download built archives | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: pypi_archives | ||
path: dist | ||
|
||
- name: Create GH release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
draft: true | ||
files: dist/* | ||
|
||
|
||
create-pypi-release: | ||
name: Create PyPI release | ||
needs: | ||
- create-gh-release | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Download built archives | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: pypi_archives | ||
path: dist | ||
|
||
- name: Publish to PyPI | ||
if: startsWith(github.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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 |
---|---|---|
@@ -1,29 +1,29 @@ | ||
## .readthedocs.yml | ||
## Read the Docs configuration file | ||
## See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
# | ||
## Required | ||
#version: 2 | ||
# | ||
## Build in latest ubuntu/python | ||
#build: | ||
# os: ubuntu-22.04 | ||
# tools: | ||
# python: "3.11" | ||
# | ||
## Build PDF & ePub | ||
#formats: | ||
# - epub | ||
# | ||
## Where the Sphinx conf.py file is located | ||
#sphinx: | ||
# configuration: docs/source/conf.py | ||
# | ||
## Setting the python version and doc build requirements | ||
#python: | ||
# install: | ||
# - method: pip | ||
# path: . | ||
# extra_requirements: | ||
# - docs | ||
# .readthedocs.yml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Build in latest ubuntu/python | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
|
||
# Build PDF & ePub | ||
formats: | ||
- epub | ||
|
||
# Where the Sphinx conf.py file is located | ||
sphinx: | ||
configuration: docs/source/conf.py | ||
|
||
# Setting the python version and doc build requirements | ||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- docs |
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.