Skip to content

Commit 3eefc04

Browse files
authored
Merge pull request #126 from jeipollack/develop
Manual triggers for CI and CD
2 parents 51717bf + f9db7f8 commit 3eefc04

4 files changed

Lines changed: 70 additions & 3 deletions

File tree

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
- name: Checkout
1919
uses: actions/checkout@v3
2020

21-
- name: Set up Python 3.10.5
21+
- name: Set up Python 3.10.11
2222
uses: actions/setup-python@v3
2323
with:
24-
python-version: "3.10.5"
24+
python-version: "3.10.11"
2525

2626
- name: Check Python Version
2727
run: python --version

.github/workflows/cd_manual.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: CD_Manual
5+
6+
on: [workflow_dispatch]
7+
8+
jobs:
9+
docs:
10+
name: Test API documentation build
11+
runs-on: [ubuntu-latest]
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
17+
- name: Set up Python 3.10.11
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: "3.10.11"
21+
22+
- name: Check Python Version
23+
run: python --version
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install ".[docs]"
28+
29+
- name: Build API documentation
30+
run: |
31+
sphinx-apidoc -Mfeo docs/source src/wf_psf
32+
sphinx-build docs/source docs/build
33+
34+
- name: Archive documentation as artifact
35+
uses: actions/upload-artifact@v2
36+
with:
37+
name: api-docs
38+
path: docs/build

.github/workflows/ci_manual.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: CI_manual
5+
6+
on: [workflow_dispatch]
7+
8+
jobs:
9+
test-full:
10+
runs-on: [ubuntu-latest]
11+
12+
strategy:
13+
matrix:
14+
python-version: ["3.9", "3.10"]
15+
16+
steps:
17+
- name:
18+
uses: actions/checkout@v3
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v3
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies
26+
run: python -m pip install ".[test]"
27+
28+
- name: Test with pytest
29+
run: python -m pytest

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ release = [
5252
]
5353

5454
test = [
55-
"pytest",
55+
"pytest>=7.0.0,<8.1",
5656
"pytest-cov",
5757
"pytest-emoji",
5858
"pytest-raises",

0 commit comments

Comments
 (0)