Skip to content

Commit

Permalink
move to test-presto
Browse files Browse the repository at this point in the history
  • Loading branch information
agoscinski committed Jan 24, 2025
1 parent 022e209 commit 9412142
Showing 1 changed file with 70 additions and 68 deletions.
138 changes: 70 additions & 68 deletions .github/workflows/ci-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,77 +18,79 @@ env:

jobs:

tests:

runs-on: ${{ matrix.os }}
timeout-minutes: 45

strategy:
fail-fast: false
matrix:
os: [windows-latest]
python-version: ['3.9', '3.12']
database-backend: [sqlite]

#services:
# postgres:
# image: postgres:10
# env:
# POSTGRES_DB: test_aiida
# POSTGRES_PASSWORD: ''
# POSTGRES_HOST_AUTH_METHOD: trust
# options: >-
# --health-cmd pg_isready
# --health-interval 10s
# --health-timeout 5s
# --health-retries 5
# ports:
# - 5432:5432
# rabbitmq:
# image: rabbitmq:3.8.14-management
# ports:
# - 5672:5672
# - 15672:15672
# slurm:
# image: xenonmiddleware/slurm:17
# ports:
# - 5001:22

steps:
- uses: actions/checkout@v4

- name: Install system dependencies
run: sudo apt update && sudo apt install postgresql graphviz

- name: Install aiida-core
uses: ./.github/actions/install-aiida-core
with:
python-version: ${{ matrix.python-version }}

- name: Setup environment
run: .github/workflows/setup.sh

- name: Run test suite
env:
AIIDA_TEST_PROFILE: test_aiida
AIIDA_WARN_v3: 1
# NOTE1: Python 3.12 has a performance regression when running with code coverage
# so run code coverage only for python 3.9.
run: |
pytest -n auto --db-backend ${{ matrix.database-backend }} -m 'not nightly' tests/ ${{ matrix.python-version == '3.9' && '--cov aiida' || '' }}
- name: Upload coverage report
if: matrix.python-version == 3.9 && github.repository == 'aiidateam/aiida-core'
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: aiida-pytests-py3.9
file: ./coverage.xml
fail_ci_if_error: false # don't fail job, if coverage upload fails
#tests:

# runs-on: ubuntu-24.04
# timeout-minutes: 45

# strategy:
# fail-fast: false
# matrix:
# python-version: ['3.9', '3.12']
# database-backend: [psql]
# include:
# - python-version: '3.9'
# database-backend: sqlite

# services:
# postgres:
# image: postgres:10
# env:
# POSTGRES_DB: test_aiida
# POSTGRES_PASSWORD: ''
# POSTGRES_HOST_AUTH_METHOD: trust
# options: >-
# --health-cmd pg_isready
# --health-interval 10s
# --health-timeout 5s
# --health-retries 5
# ports:
# - 5432:5432
# rabbitmq:
# image: rabbitmq:3.8.14-management
# ports:
# - 5672:5672
# - 15672:15672
# slurm:
# image: xenonmiddleware/slurm:17
# ports:
# - 5001:22

# steps:
# - uses: actions/checkout@v4

# - name: Install system dependencies
# run: sudo apt update && sudo apt install postgresql graphviz

# - name: Install aiida-core
# uses: ./.github/actions/install-aiida-core
# with:
# python-version: ${{ matrix.python-version }}

# - name: Setup environment
# run: .github/workflows/setup.sh

# - name: Run test suite
# env:
# AIIDA_TEST_PROFILE: test_aiida
# AIIDA_WARN_v3: 1
# # NOTE1: Python 3.12 has a performance regression when running with code coverage
# # so run code coverage only for python 3.9.
# run: |
# pytest -n auto --db-backend ${{ matrix.database-backend }} -m 'not nightly' tests/ ${{ matrix.python-version == '3.9' && '--cov aiida' || '' }}

# - name: Upload coverage report
# if: matrix.python-version == 3.9 && github.repository == 'aiidateam/aiida-core'
# uses: codecov/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# name: aiida-pytests-py3.9
# file: ./coverage.xml
# fail_ci_if_error: false # don't fail job, if coverage upload fails

tests-presto:

runs-on: ubuntu-24.04
runs-on: [windows-latest]
timeout-minutes: 20

steps:
Expand Down

0 comments on commit 9412142

Please sign in to comment.