Skip to content

Commit

Permalink
finalizing things
Browse files Browse the repository at this point in the history
  • Loading branch information
kessler-frost committed Aug 29, 2023
1 parent e63c886 commit 3c444e2
Show file tree
Hide file tree
Showing 6 changed files with 157 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ name: nightly

on:
schedule:
- cron: "0 * * * *"
- cron: "0 4 * * *"

jobs:
license:
Expand Down
132 changes: 132 additions & 0 deletions .github/workflows/test_matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,5 +237,137 @@
"schedule",
"workflow_dispatch"
]
},
{
"name": "MacOS 11 / Python 3.8 / Dask",
"os": "macos-latest",
"python-version": "3.8",
"backend": "dask",
"experimental": false,
"trigger": [
"schedule",
"workflow_dispatch"
]
},
{
"name": "MacOS 11 / Python 3.8 / Local",
"os": "macos-latest",
"python-version": "3.8",
"backend": "local",
"experimental": false,
"trigger": [
"schedule",
"workflow_dispatch"
]
},
{
"name": "MacOS 11 / Python 3.9 / Dask",
"os": "macos-latest",
"python-version": "3.9",
"backend": "dask",
"experimental": false,
"trigger": [
"schedule",
"workflow_dispatch"
]
},
{
"name": "MacOS 11 / Python 3.9 / Local",
"os": "macos-latest",
"python-version": "3.9",
"backend": "local",
"experimental": false,
"trigger": [
"schedule",
"workflow_dispatch"
]
},
{
"name": "MacOS 11 / Python 3.10 / Dask",
"os": "macos-latest",
"python-version": "3.10",
"backend": "dask",
"experimental": false,
"trigger": [
"schedule",
"workflow_dispatch"
]
},
{
"name": "MacOS 11 / Python 3.10 / Local",
"os": "macos-latest",
"python-version": "3.10",
"backend": "local",
"experimental": false,
"trigger": [
"schedule",
"workflow_dispatch"
]
},
{
"name": "MacOS 12 / Python 3.8 / Dask",
"os": "macos-12",
"python-version": "3.8",
"backend": "dask",
"experimental": false,
"trigger": [
"schedule",
"workflow_dispatch"
]
},
{
"name": "MacOS 12 / Python 3.8 / Local",
"os": "macos-12",
"python-version": "3.8",
"backend": "local",
"experimental": false,
"trigger": [
"schedule",
"workflow_dispatch"
]
},
{
"name": "MacOS 12 / Python 3.9 / Dask",
"os": "macos-12",
"python-version": "3.9",
"backend": "dask",
"experimental": false,
"trigger": [
"schedule",
"workflow_dispatch"
]
},
{
"name": "MacOS 12 / Python 3.9 / Local",
"os": "macos-12",
"python-version": "3.9",
"backend": "local",
"experimental": false,
"trigger": [
"schedule",
"workflow_dispatch"
]
},
{
"name": "MacOS 12 / Python 3.10 / Dask",
"os": "macos-12",
"python-version": "3.10",
"backend": "dask",
"experimental": false,
"trigger": [
"schedule",
"workflow_dispatch"
]
},
{
"name": "MacOS 12 / Python 3.10 / Local",
"os": "macos-12",
"python-version": "3.10",
"backend": "local",
"experimental": false,
"trigger": [
"schedule",
"workflow_dispatch"
]
}
]
48 changes: 24 additions & 24 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,34 +225,34 @@ jobs:
env:
COVALENT_EXECUTOR_DIR: doc/source/how_to/execution/custom_executors

# - name: Run SDK tests and measure coverage
# id: sdk-tests
# if: >
# steps.modified-files.outputs.sdk == 'true'
# || env.BUILD_AND_RUN_ALL
# run: PYTHONPATH=$PWD/ pytest -vvs --reruns=5 tests/covalent_tests --cov=covalent --cov-config=.coveragerc

# - name: Generate SDK coverage report
# id: sdk-coverage
# if: steps.sdk-tests.outcome == 'success'
# run: coverage xml -o sdk_coverage.xml

# - name: Run dispatcher tests and measure coverage
# id: dispatcher-tests
# if: >
# steps.modified-files.outputs.dispatcher == 'true'
# || env.BUILD_AND_RUN_ALL
# run: PYTHONPATH=$PWD/ pytest -vvs --reruns=5 tests/covalent_dispatcher_tests --cov=covalent_dispatcher --cov-config=.coveragerc

# - name: Generate dispatcher coverage report
# id: dispatcher-coverage
# if: steps.dispatcher-tests.outcome == 'success'
# run: coverage xml -o dispatcher_coverage.xml
- name: Run SDK tests and measure coverage
id: sdk-tests
if: >
steps.modified-files.outputs.sdk == 'true'
|| env.BUILD_AND_RUN_ALL
run: PYTHONPATH=$PWD/ pytest -vvs --reruns=5 tests/covalent_tests --cov=covalent --cov-config=.coveragerc

- name: Generate SDK coverage report
id: sdk-coverage
if: steps.sdk-tests.outcome == 'success'
run: coverage xml -o sdk_coverage.xml

- name: Run dispatcher tests and measure coverage
id: dispatcher-tests
if: >
steps.modified-files.outputs.dispatcher == 'true'
|| env.BUILD_AND_RUN_ALL
run: PYTHONPATH=$PWD/ pytest -vvs --reruns=5 tests/covalent_dispatcher_tests --cov=covalent_dispatcher --cov-config=.coveragerc

- name: Generate dispatcher coverage report
id: dispatcher-coverage
if: steps.dispatcher-tests.outcome == 'success'
run: coverage xml -o dispatcher_coverage.xml

- name: Run functional tests and measure coverage
id: functional-tests
if: env.BUILD_AND_RUN_ALL
run: PYTHONPATH=$PWD/ pytest -vvs tests/functional_tests --cov=covalent --cov=covalent_dispatcher --cov-config=.coveragerc
run: PYTHONPATH=$PWD/ pytest -vvs --reruns=5 tests/functional_tests --cov=covalent --cov=covalent_dispatcher --cov-config=.coveragerc

- name: Generate functional test coverage report
id: functional-coverage
Expand Down
1 change: 0 additions & 1 deletion tests/functional_tests/choose_executor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def workflow(y):
assert output.result == "input"


# @pytest.mark.debug
def test_using_executor_classes():
"""Test creating executor objects and using them in a simple electron."""

Expand Down
1 change: 0 additions & 1 deletion tests/functional_tests/docs_how_to_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
]


@pytest.mark.skip(reason="Temporarily skipping, to test whether this is the issue")
@pytest.mark.parametrize("file, expected_return_value", zip(files, expected_return_values))
def test_how_to_file(file, expected_return_value):
if os.path.basename(file) not in ignore_files:
Expand Down
1 change: 0 additions & 1 deletion tests/functional_tests/qa_http_file_transfer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

"""Test http file transfer."""


import covalent as ct


Expand Down

0 comments on commit 3c444e2

Please sign in to comment.