-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #692 from Zeitsperre/CI-and-Documentation
Reconfigure CI and Documentation
- Loading branch information
Showing
3 changed files
with
70 additions
and
12 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,4 +1,4 @@ | ||
name: build ⚙️ | ||
name: Build PyWPS ⚙️ | ||
|
||
on: | ||
push: | ||
|
@@ -7,7 +7,28 @@ on: | |
pull_request: | ||
|
||
jobs: | ||
lint: | ||
name: Linting Suite | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.9" | ||
- name: Install tox | ||
run: | | ||
pip install tox>=4.0 | ||
- name: Run linting suite ⚙️ | ||
run: | | ||
tox -e lint | ||
test: | ||
name: Testing with Python${{ matrix.python-version }} | ||
needs: lint | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
|
@@ -21,20 +42,15 @@ jobs: | |
- tox-env: py311-extra | ||
python-version: "3.11" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Install packages 📦 | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install libnetcdf-dev libhdf5-dev | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/setup-python@v5 | ||
name: Setup Python ${{ matrix.python-version }} | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Run flake8 ⚙️ | ||
run: | | ||
pip install flake8 | ||
flake8 pywps | ||
if: matrix.python-version == 3.8 | ||
- name: Install tox 📦 | ||
run: pip install "tox>=4.0" | ||
- name: Run tests with tox ⚙️ | ||
|
@@ -44,14 +60,16 @@ jobs: | |
uses: AndreMiras/coveralls-python-action@develop | ||
|
||
docs: | ||
name: Build docs 🏗️ | ||
needs: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
name: Setup Python 3.8 | ||
with: | ||
python-version: 3.8 | ||
- name: Build docs 🏗️ | ||
- name: Build documentation 🏗️ | ||
run: | | ||
pip install -e .[dev] | ||
cd docs && make html |
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,30 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Make additional formats available for download | ||
formats: | ||
- epub | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "mambaforge-22.9" | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
|
||
# We recommend specifying your dependencies to enable reproducible builds: | ||
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
python: | ||
install: | ||
- method: pip | ||
path: . | ||
extra_requirements: | ||
- dev |
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