Skip to content

Commit

Permalink
Update test and CI dependencies. (#43)
Browse files Browse the repository at this point in the history
Update the required pytest version for tests to `~=6.0`.

In the CI pipeline, manually install `aiida-core<1.6` and SQLAlchemy `<1.4`.

The `aiida-core` version is pinned due to `aiida-core` issue #4830, which
makes the tests hang.

The pinning of SQLAlchemy follows `aiida-core` PR #4809, which came
after the `1.5.2` release.
  • Loading branch information
greschd committed Mar 24, 2021
1 parent 61dbab6 commit e3e006d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .ci/install_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
set -ev

pip install -U pip wheel setuptools
pip install 'aiida-core<1.6' 'sqlalchemy<1.4'

case "$INSTALL_TYPE" in
testing)
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on: [push, pull_request]
jobs:
docs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v2
Expand All @@ -31,6 +32,7 @@ jobs:

pre-commit:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Cache python dependencies
Expand All @@ -53,6 +55,7 @@ jobs:

tests:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
matrix:
python-version: [3.7, 3.8]
Expand Down
2 changes: 1 addition & 1 deletion setup.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"sphinxcontrib-details-directive"
],
"testing": [
"pytest>=3.6",
"pytest~=6.0",
"pytest-cov",
"aiida-pytest>=0.1.0a8"
],
Expand Down

0 comments on commit e3e006d

Please sign in to comment.