Skip to content

Commit

Permalink
add dependabot, update actions versions, add pre-commit to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Nov 20, 2023
1 parent 3f5d5e8 commit 4ecf0c9
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 7 deletions.
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:

# Maintain dependencies for GitHub Actions (main)
- package-ecosystem: "github-actions"
directory: "/"
target-branch: "main"
schedule:
interval: "weekly"

# Maintain dependencies for pip (main)
- package-ecosystem: "pip"
directory: "/"
target-branch: "main"
schedule:
interval: "weekly"
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,22 @@ on:
pull_request:

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: pre-commit/action@v3.0.0
core:
needs: [pre-commit]
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1
with:
submodules: false
envs: |
- linux: py39
- linux: py310
- linux: py311
- linux: py312
test:
needs: [core]
Expand All @@ -43,22 +51,23 @@ jobs:
upload_to_anaconda: false

asdf-dev:
needs: [pre-commit]
name: Run asdf-development tests
runs-on: ubuntu-latest
steps:
- name: Checkout asdf-standard
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
path: asdf-standard
- name: Checkout asdf-dev
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: asdf-format/asdf
path: asdf
- name: Set up Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install asdf-standard
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,19 @@ jobs:
test_command: pytest
steps:
- name: Checkout asdf-standard
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
path: asdf-standard
- name: Checkout ${{ matrix.package_name }}
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: ${{ matrix.repository }}
path: target
- name: Set up Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install asdf-standard
Expand Down

0 comments on commit 4ecf0c9

Please sign in to comment.