-
Notifications
You must be signed in to change notification settings - Fork 14
65 lines (60 loc) · 2.18 KB
/
Copy pathon-commit.yml
File metadata and controls
65 lines (60 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# GitHub actions are pinned to commit hashes to ensure stability and security.
name: Sanity
# Declare default permissions as read only.
permissions: read-all
on: [push]
jobs:
Sanity:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
submodules: recursive
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
with:
python-version: 3.14
- run: python3 -m venv .venv
- run: .venv/bin/python -m pip install wheel
- run: .venv/bin/python -m pip install -e .[tests]
- run: .venv/bin/python -m pytest
Sphinx:
permissions:
contents: write
runs-on: ubuntu-latest
if: |
github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
fetch-depth: 0
submodules: recursive
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
with:
python-version: 3.12
- run: python3 -m venv .venv
- run: .venv/bin/python -m pip install wheel sphinx setuptools
- run: .venv/bin/python -m pip install -e .[docs]
- run: .venv/bin/python setup.py apidoc
- run: .venv/bin/python setup.py build_sphinx -W
- name: Publish Docs to Pages
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f
with:
branch: gh-pages
folder: build/sphinx/html
Fair-software:
runs-on: ubuntu-latest
steps:
- uses: fair-software/howfairis-github-action@4c11146488125aa6e1531184eed51d781bcd5871
name: Measure compliance with fair-software.eu recommendations
env:
HTTP_TIMEOUT: 90 # Setting timeout to 90 seconds
PYCHARM_HOSTED: "Trick colorama into displaying colored output"
with:
MY_REPO_URL: "https://github.com/${{ github.repository }}"
# Markdown:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
# - uses: gaurav-nelson/github-action-markdown-link-check@v1
# with:
# config-file: '.github/workflows/mlc-config.json'