forked from NiklasRosenstein/python-github-bot-api
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.24 KB
/
python.yml
File metadata and controls
41 lines (38 loc) · 1.24 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
name: Python
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.x" ]
steps:
- uses: actions/checkout@v3
- uses: python-slap/slap.cli@gha/install/v1
with: { version: "==1.13.2" }
- uses: actions/setup-python@v4
with: { python-version: "${{ matrix.python-version }}" }
- run: slap config --venv-type UV
- run: slap install -vv --no-venv-check
- run: slap test
- run: slap publish --dry
documentation:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/develop'
steps:
- uses: actions/checkout@v3
- uses: python-slap/slap.cli@gha/install/v1
with: { version: "==1.13.2" }
- run: slap changelog format --markdown --all > docs/content/changelog.md
- run: python -m pip install uv -q && uv venv venv && . venv/bin/activate && uv pip install -r docs/requirements.txt
- run: . venv/bin/activate && cd docs && mkdocs build --site-dir _site
- uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/_site
ssh-key: ${{ secrets.DEPLOY_KEY }}