-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
86 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: monthly | ||
groups: | ||
gha-dependencies: | ||
patterns: | ||
- '*' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,96 @@ | ||
--- | ||
# Run basic tests for this app on the latest aiidalab-docker image. | ||
|
||
name: continuous-integration | ||
name: CI unit test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
pre-commit: | ||
fast-tests: | ||
|
||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies | ||
run: pip install -U pre-commit==2.10.0 | ||
python-version: "3.10" | ||
|
||
- name: Run pre-commit | ||
run: pre-commit run --all-files || ( git status --short ; git diff ; exit 1 ) | ||
- name: Install uv | ||
run: | | ||
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/0.2.4/uv-installer.sh | sh | ||
test: | ||
needs: [pre-commit] | ||
- name: Install dependencies for test | ||
run: | | ||
uv pip install .[dev] | ||
strategy: | ||
matrix: | ||
python-version: ['3.9', '3.10'] | ||
- name: Pull the image and Run pytest | ||
run: | | ||
pytest -v tests -m "not slow" | ||
services: | ||
rabbitmq: | ||
image: rabbitmq:3.8.14-management | ||
ports: | ||
- 5672:5672 | ||
- 15672:15672 | ||
slow-tests: | ||
|
||
needs: [fast-tests] | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 40 | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Cache Python dependencies | ||
uses: actions/cache@v1 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
path: ~/.cache/pip | ||
key: pip-${{ matrix.python-version }}-tests-${{ hashFiles('**/setup.json') }} | ||
restore-keys: pip-${{ matrix.python-version }}-tests | ||
python-version: "3.10" | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install uv | ||
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/0.2.4/uv-installer.sh | sh | ||
|
||
- name: Install dependencies for test | ||
run: | | ||
pip install -U pip==22.3.1 | ||
pip install -U .[tests] | ||
uv pip install .[dev] | ||
- name: Pull the image and Run pytest | ||
run: | | ||
pytest -v tests -m "slow" | ||
edge-aiida-core-tests: | ||
# This is to test the plugin is compatible with the main branch of aiida-core | ||
|
||
needs: [slow-tests] | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install uv | ||
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/0.2.4/uv-installer.sh | sh | ||
|
||
- name: Install dependencies and edge aiida-core for test | ||
run: | | ||
uv pip install .[dev] | ||
pip uninstall --yes aiida-core | ||
git clone --depth 1 https://github.com/aiidateam/aiida-core.git | ||
uv pip install ./aiida-core | ||
- name: Check aiida-core version is the edget ('post' in version tag) | ||
run: | | ||
if verdi --version | grep -q "post"; then | ||
echo $(verdi --version) | ||
else | ||
echo $(verdi --version) | ||
exit 1 | ||
fi | ||
- name: Pull the image and Run pytest | ||
run: | | ||
pytest -sv tests | ||
pytest -v tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters