Skip to content

Commit c8721ec

Browse files
committed
Update GitHub workflows
1 parent 1e53032 commit c8721ec

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/python-testsuite.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,39 @@ jobs:
1313
build:
1414

1515
runs-on: ubuntu-latest
16+
1617
strategy:
1718
matrix:
1819
python-version: [3.8]
20+
21+
services:
22+
rabbitmq:
23+
image: rabbitmq:latest
24+
ports:
25+
- 5672:5672
1926

2027
steps:
2128
- uses: actions/checkout@v2
29+
2230
- name: Set up Python ${{ matrix.python-version }}
2331
uses: actions/setup-python@v2
2432
with:
2533
python-version: ${{ matrix.python-version }}
34+
2635
- name: Install dependencies
2736
run: |
2837
python -m pip install --upgrade pip
29-
pip install flake8 pytest
38+
pip install flake8 pytest aiida-core aiida-quantumespresso
3039
if [ ${{matrix.python-version}} -eq 2.7 ]; then pip install -r requirements2.txt;
3140
else pip install -r requirements.txt; fi
41+
3242
- name: Lint with flake8
3343
run: |
3444
# stop the build if there are Python syntax errors or undefined names
3545
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3646
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3747
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
48+
3849
- name: Install
3950
run: |
4051
sudo apt-get update
@@ -45,9 +56,11 @@ jobs:
4556
cd ..
4657
4758
python setup.py install --user
59+
4860
- name: Test with pytest
61+
env:
62+
OMP_NUM_THREADS: 1
4963
run: |
50-
export OMP_NUM_THREADS=1
5164
cd tests
5265
rm -rf __pycache__
5366
# Test excluding very long running tests

Modules/Relax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
from __future__ import print_function
2+
from __future__ import print_function, annotations
33

44
"""
55
This module performs the relax over more

0 commit comments

Comments
 (0)