Skip to content

Commit cb96275

Browse files
authored
Workflow cleaning (#65)
1 parent d644d7e commit cb96275

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

.github/workflows/mkdocs_build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@ name: Build docs
22

33
on:
44
pull_request:
5-
branches: main
5+
branches:
6+
- main
67

78
# Allows manual run from the Actions tab
89
workflow_dispatch:
910

1011
jobs:
1112
build-docs:
13+
name: Build docs
1214
runs-on: ubuntu-latest
1315
steps:
1416
- name: Checkout repo
15-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1618
- name: Setup python
17-
uses: actions/setup-python@v5
19+
uses: actions/setup-python@v6
1820
with:
19-
python-version: "3.x"
21+
python-version: '3.x'
2022
- name: Install packages
2123
run: |
2224
python3 -m pip install --upgrade pip

.github/workflows/mkdocs_deploy.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,21 @@ on:
44
push:
55
branches:
66
- main
7-
paths:
8-
- 'mkdocs.yml'
9-
- 'docs/**'
107

118
# Allows manual run from the Actions tab
129
workflow_dispatch:
1310

1411
jobs:
1512
build-docs:
13+
name: Build docs
1614
runs-on: ubuntu-latest
1715
steps:
1816
- name: Checkout repo
19-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
2018
- name: Setup python
21-
uses: actions/setup-python@v5
19+
uses: actions/setup-python@v6
2220
with:
23-
python-version: "3.x"
21+
python-version: '3.x'
2422
- name: Install packages
2523
run: |
2624
python3 -m pip install --upgrade pip
@@ -35,6 +33,7 @@ jobs:
3533
path: site/
3634

3735
deploy-docs:
36+
name: Deploy docs
3837
runs-on: ubuntu-latest
3938
environment:
4039
name: github-pages

.github/workflows/test_and_publish_package_to_staging.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: Test and deploy to staging
22

3-
permissions:
4-
contents: write # Allow writing to the repository (e.g., commits, pushes)
5-
63
on:
74
push:
85
branches:
@@ -11,6 +8,9 @@ on:
118
- 'emod_api/**'
129
- 'pyproject.toml'
1310

11+
permissions:
12+
contents: write # Allow writing to the repository (e.g., commits, pushes)
13+
1414
jobs:
1515
run-tests:
1616
name: Run tests

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools", "wheel"]
2+
requires = ["setuptools"]
33
build-backend = "setuptools.build_meta"
44

55
[project]

0 commit comments

Comments
 (0)