Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add dependabot, update actions versions, add pre-commit to ci #412

Merged
merged 1 commit into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading