Skip to content

Commit

Permalink
Devops: Add Dependabot config for maintaining GH actions (#6467)
Browse files Browse the repository at this point in the history
* Add dependabot config for maintaining GH actions
* Enable `FORCE_COLOR` environment variable
* Update `uv` installer
* Remove code coverage in `presto` test suite
* Do not install from `requirements.txt` for `verdi`
  • Loading branch information
danielhollas authored Jun 7, 2024
1 parent 82bba13 commit 0812f4b
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/actions/install-aiida-core/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ runs:
- name: Install uv installer
run: curl --proto '=https' --tlsv1.2 -LsSf https://${{ env.UV_URL }} | sh
env:
UV_VERSION: 0.2.5
UV_VERSION: 0.2.9
UV_URL: github.com/astral-sh/uv/releases/download/$UV_VERSION/uv-installer.sh
shell: bash

Expand Down
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
groups:
gha-dependencies:
patterns:
- '*'
13 changes: 2 additions & 11 deletions .github/workflows/ci-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,7 @@ jobs:
- name: Run test suite
env:
AIIDA_WARN_v3: 0
run: pytest -m 'presto' --cov aiida

- name: Upload coverage report
if: github.repository == 'aiidateam/aiida-core'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: aiida-pytests-presto
flags: presto
file: ./coverage.xml
fail_ci_if_error: false # don't fail job, if coverage upload fails
run: pytest -m 'presto'


verdi:
Expand All @@ -165,6 +155,7 @@ jobs:
uses: ./.github/actions/install-aiida-core
with:
python-version: '3.12'
from-requirements: 'false'

- name: Run verdi tests
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches-ignore: [gh-pages]

env:
FORCE_COLOR: 1

jobs:

pre-commit:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
branches-ignore: [gh-pages]
paths: [docs/**]

env:
FORCE_COLOR: 1

jobs:

docs-linkcheck:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
tags:
- v[0-9]+.[0-9]+.[0-9]+*

env:
FORCE_COLOR: 1

jobs:

check-release-tag:
Expand All @@ -33,11 +36,6 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Install system dependencies
# note libkrb5-dev is required as a dependency for the gssapi pip install
run: |
sudo apt update
sudo apt install libkrb5-dev ruby ruby-dev

- name: Install aiida-core and pre-commit
uses: ./.github/actions/install-aiida-core
Expand Down
4 changes: 2 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ build:
# https://docs.readthedocs.io/en/stable/build-customization.html#install-dependencies-with-uv
post_create_environment:
- asdf plugin add uv
- asdf install uv 0.1.44
- asdf global uv 0.1.44
- asdf install uv 0.2.9
- asdf global uv 0.2.9
post_install:
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install .[docs,tests,rest,atomic_tools]

Expand Down

0 comments on commit 0812f4b

Please sign in to comment.