Skip to content

Commit 59e2a61

Browse files
committed
update gh actions and docs
1 parent 53dd70d commit 59e2a61

10 files changed

+110
-169
lines changed

.github/workflows/build-and-test-MACS3-macos.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@ jobs:
2323
build:
2424
strategy:
2525
matrix:
26-
os: [macos-13]
27-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
26+
os: [macos-latest]
27+
python-version: ["3.12", "3.13", "3.14"]
2828
runs-on: ${{ matrix.os }}
2929
name: Build on ${{ matrix.os }} with Python ${{ matrix.python-version }}
3030

3131
steps:
3232
- name: Checkout MACS
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@v6
3434
with:
3535
submodules: 'true'
3636
- name: Set up Python ${{ matrix.python-version }}
37-
uses: actions/setup-python@v5
37+
uses: actions/setup-python@v6
3838
with:
3939
python-version: ${{ matrix.python-version }}
4040
- name: Cache pip
41-
uses: actions/cache@v4
41+
uses: actions/cache@v5
4242
with:
4343
# This path is specific to Ubuntu
4444
path: ~/.cache/pip
@@ -76,7 +76,7 @@ jobs:
7676
source macs3venv/bin/activate
7777
python3 setup.py sdist
7878
- name: Archive sdist
79-
uses: actions/upload-artifact@v4
79+
uses: actions/upload-artifact@v6
8080
with:
8181
name: sdist-${{ matrix.os }}-${{ matrix.python-version }}
8282
path: |

.github/workflows/build-and-test-MACS3-non-x64-others.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88

99
jobs:
1010
build_job:
11-
runs-on: ubuntu-22.04
12-
name: Build on ${{ matrix.arch }} with Python 3.10
11+
runs-on: ubuntu-24.04
12+
name: Build on ${{ matrix.arch }} with Python 3.12
1313
strategy:
1414
matrix:
1515
include:
@@ -19,16 +19,16 @@ jobs:
1919

2020
steps:
2121
- name: Checkout MACS
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v6
2323
with:
2424
submodules: 'true'
2525

2626
- name: Set up arch and run
27-
uses: uraimo/run-on-arch-action@v2
27+
uses: uraimo/run-on-arch-action@v3
2828
id: build
2929
with:
3030
arch: ${{ matrix.arch }}
31-
distro: ubuntu22.04
31+
distro: ubuntu24.04
3232

3333
githubToken: ${{ github.token }}
3434

@@ -89,7 +89,7 @@ jobs:
8989
9090
- name: Archive cmdlinetest results
9191
if: always()
92-
uses: actions/upload-artifact@v4
92+
uses: actions/upload-artifact@v6
9393
with:
9494
name: cmdlinetest-hmmratac-results-${{ matrix.arch }}
9595
path: temp/macs3_run_hmmratac/

.github/workflows/build-and-test-MACS3-non-x64.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,25 @@ on:
2121

2222
jobs:
2323
build_job:
24-
runs-on: ubuntu-22.04
25-
name: Build on ${{ matrix.arch }} with Python 3.10
24+
runs-on: ubuntu-24.04
25+
name: Build on ${{ matrix.arch }} with Python 3.12
2626
strategy:
2727
matrix:
2828
include:
2929
- arch: aarch64
3030

3131
steps:
3232
- name: Checkout MACS
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@v6
3434
with:
3535
submodules: 'true'
3636

3737
- name: Set up arch and run
38-
uses: uraimo/run-on-arch-action@v2
38+
uses: uraimo/run-on-arch-action@v3
3939
id: build
4040
with:
4141
arch: ${{ matrix.arch }}
42-
distro: ubuntu22.04
42+
distro: ubuntu-24.04
4343

4444
githubToken: ${{ github.token }}
4545

@@ -100,7 +100,7 @@ jobs:
100100
101101
- name: Archive cmdlinetest results
102102
if: always()
103-
uses: actions/upload-artifact@v4
103+
uses: actions/upload-artifact@v6
104104
with:
105105
name: cmdlinetest-hmmratac-results-${{ matrix.arch }}
106106
path: temp/macs3_run_hmmratac/

.github/workflows/build-and-test-MACS3-website.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Build and Test MACS3 website using Sphinx
22

3+
# This action is to test document building
4+
35
on:
46
push:
57
paths:
@@ -13,18 +15,21 @@ jobs:
1315
runs-on: ubuntu-latest
1416
steps:
1517
- name: Checkout
16-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6
19+
with:
20+
submodules: 'true'
1721

18-
- name: Set up Python 3.11
19-
uses: actions/setup-python@v5
22+
- name: Set up Python 3.12
23+
uses: actions/setup-python@v6
2024
with:
21-
python-version: "3.11"
25+
python-version: "3.12"
2226

2327
- name: Install dependencies
2428
run: |
2529
python3 -m pip install --upgrade pip
2630
python3 -m pip install sphinx myst-parser sphinx-rtd-theme sphinx-autodoc-typehints
2731
python3 -m pip install -r requirements.txt
32+
python3 -m pip install -e .
2833
2934
- name: Build Sphinx Documentation
3035
run: |
@@ -33,7 +38,7 @@ jobs:
3338
cd ..
3439
3540
- name: Upload artifact
36-
uses: actions/upload-pages-artifact@v3
41+
uses: actions/upload-pages-artifact@v4
3742
with:
3843
# Archive and upload entire website
3944
path: './docs/build/html'

.github/workflows/build-and-test-MACS3-x64.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@ on:
2121

2222
jobs:
2323
build:
24-
runs-on: ubuntu-22.04
24+
runs-on: ubuntu-latest
2525
strategy:
2626
matrix:
27-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
27+
python-version: ["3.12", "3.13", "3.14"]
2828
arch: ['x64']
2929
name: Build on x64 with Python ${{ matrix.python-version }}
3030
steps:
3131
- name: Checkout MACS
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@v6
3333
with:
3434
submodules: 'true'
3535
- name: Set up Python ${{ matrix.python-version }}
36-
uses: actions/setup-python@v5
36+
uses: actions/setup-python@v6
3737
with:
3838
python-version: ${{ matrix.python-version }}
3939
architecture: ${{ matrix.arch }}
4040
- name: Cache pip
41-
uses: actions/cache@v4
41+
uses: actions/cache@v5
4242
with:
4343
# This path is specific to Ubuntu
4444
path: ~/.cache/pip
@@ -70,7 +70,7 @@ jobs:
7070
run: |
7171
python3 setup.py sdist
7272
- name: Archive sdist
73-
uses: actions/upload-artifact@v4
73+
uses: actions/upload-artifact@v6
7474
with:
7575
name: sdist-${{ matrix.arch }}-${{ matrix.python-version }}
7676
path: |

.github/workflows/publish-to-anaconda.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

.github/workflows/publish-to-gh-with-sphinx.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ jobs:
2222
build-and-publish:
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v4 # Checks-out your repository under $GITHUB_WORKSPACE
25+
- name: Checkout
26+
uses: actions/checkout@v6 # Checks-out your repository under $GITHUB_WORKSPACE
2627
with:
2728
submodules: 'true'
2829

2930
- name: Set up Python
30-
uses: actions/setup-python@v5
31+
uses: actions/setup-python@v6
3132
with:
3233
python-version: '3.12' # Set up the Python version you need
3334
architecture: 'x64'
@@ -43,15 +44,15 @@ jobs:
4344
4445
- name: Build Sphinx Documentation
4546
run: |
46-
cd docs # Change to your documentation directory if needed
47+
cd docs
4748
make html
4849
cd ..
4950
5051
- name: Setup Pages
51-
uses: actions/configure-pages@v4
52+
uses: actions/configure-pages@v5
5253

5354
- name: Upload artifact
54-
uses: actions/upload-pages-artifact@v3
55+
uses: actions/upload-pages-artifact@v4
5556
with:
5657
# Upload entire repository
5758
path: './docs/build/html'

.github/workflows/publish-to-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
steps:
2121
# retrieve your distributions here
2222
- name: Check out MACS3 with submodules
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v6
2424
with:
2525
submodules: 'true'
2626

2727
- name: Set up Python
28-
uses: actions/setup-python@v5
28+
uses: actions/setup-python@v6
2929
with:
3030
python-version: '3.12'
3131

0 commit comments

Comments
 (0)