Skip to content

Commit 093d0d7

Browse files
authored
Merge pull request #179 from pllim/action-ver-hash
MNT: Use hash for Action workflow versions and update if needed
2 parents 50258f2 + 90abeec commit 093d0d7

File tree

5 files changed

+33
-18
lines changed

5 files changed

+33
-18
lines changed

.github/dependabot.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions" # See documentation for possible values
9+
directory: ".github/workflows" # Location of package manifests
10+
schedule:
11+
interval: "monthly"
12+
groups:
13+
actions:
14+
patterns:
15+
- "*"

.github/workflows/ci_workflows.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
2424
- name: Set up Python
25-
uses: actions/setup-python@v4
25+
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
2626
with:
2727
python-version: '3.x'
2828
- name: Lint with flake8
@@ -38,9 +38,9 @@ jobs:
3838
os: [windows-latest, macos-latest, ubuntu-latest]
3939
steps:
4040
- name: Checkout code
41-
uses: actions/checkout@v3
41+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
4242
- name: Set up Python
43-
uses: actions/setup-python@v4
43+
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
4444
with:
4545
python-version: '3.10'
4646
- name: Install and build
@@ -52,9 +52,9 @@ jobs:
5252
runs-on: ubuntu-latest
5353
steps:
5454
- name: Checkout code
55-
uses: actions/checkout@v3
55+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
5656
- name: Set up Python
57-
uses: actions/setup-python@v4
57+
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
5858
with:
5959
python-version: '3.11'
6060
- name: Install and build

.github/workflows/predeps_workflow.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
os: [windows-latest, macos-latest, ubuntu-latest]
2020
steps:
2121
- name: Checkout code
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
2323
- name: Set up Python
24-
uses: actions/setup-python@v4
24+
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
2525
with:
2626
python-version: '3.10'
2727
- name: Install and build

.github/workflows/publish.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
if: github.repository == 'astropy/astrowidgets'
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
1414
with:
1515
fetch-depth: 0
16-
- uses: actions/setup-python@v4
16+
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
1717
with:
1818
python-version: 3.8
1919

@@ -31,7 +31,7 @@ jobs:
3131

3232
- name: Publish distribution 📦 to PyPI
3333
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
34-
uses: pypa/gh-action-pypi-publish@release/v1
34+
uses: pypa/gh-action-pypi-publish@897895f1e160c830e369f9779632ebc134688e1b # v1.10.2
3535
with:
3636
user: __token__
3737
password: ${{ secrets.PYPI_TOKEN }}

.readthedocs.yml .readthedocs.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
33
version: 2
44

5+
build:
6+
os: ubuntu-22.04
7+
apt_packages:
8+
- graphviz
9+
tools:
10+
python: "3.11"
11+
512
sphinx:
613
builder: html
714
configuration: docs/conf.py
815
fail_on_warning: true
916

10-
# Set the version of Python and requirements required to build your docs
11-
build:
12-
os: ubuntu-22.04
13-
tools:
14-
python: "3.10"
15-
1617
python:
17-
system_packages: false
1818
install:
1919
- method: pip
2020
path: .

0 commit comments

Comments
 (0)