Skip to content
Closed
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
8 changes: 4 additions & 4 deletions .firecrest-demo-config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"url": "",
"token_uri": "",
"client_id": "",
"client_secret": "",
"url": "http://localhost:8000/",
"token_uri": "http://localhost:8080/auth/realms/kcrealm/protocol/openid-connect/token",
"client_id": "firecrest-test-client",
"client_secret": "wZVHVIEd9dkJDh9hMKc6DTvkqXxnDttk",
"compute_resource": "",
"temp_directory": "",
"small_file_size_mb": 5.0,
Expand Down
96 changes: 0 additions & 96 deletions .github/workflows/server-tests.yml

This file was deleted.

18 changes: 16 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,37 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Checkout firecrest-v2 Docker resources
uses: actions/checkout@v4
with:
repository: eth-cscs/firecrest-v2
ref: 2.2.6
path: firecrest-v2

- name: Docker compose
run: |
docker compose -f firecrest-v2/docker-compose.yml up -d

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]

- name: Test with pytest
run: pytest -vv --cov=aiida_firecrest --cov-report=xml --cov-report=term
run: |
pytest --ignore=firecrest-v2 --firecrest-config .firecrest-demo-config.json -vv --cov=aiida_firecrest --cov-report=xml --cov-report=term

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
name: aiida-firecrest-pytests
flags: pytests
flags: pytests --.....
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
flags: pytests --.....
flags: pytests

file: ./coverage.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def firecrest_config(
firecrest_url=config.url,
authorization=ClientCredentialsAuth(
config.client_id,
Path(config.client_secret).read_text().strip(),
config.client_secret,
config.token_uri,
),
)
Expand Down
Loading