-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add fixture * add test files * add pytest to dev env * setup logging in main * format * format * add debug statements * setup for future testing * setup for future testing * test analyze functions in quantify * move fixture * import fixtures * make tests a python package * add workflow for tests * fix workflow * set logging level to INFO * format
- Loading branch information
Showing
10 changed files
with
305 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: CI Workflow | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
|
||
jobs: | ||
tests: | ||
name: Tests (${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-22.04", "windows-2022", "macos-14"] | ||
include: | ||
- env_file: environment.yaml | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Conda | ||
uses: conda-incubator/[email protected] | ||
with: | ||
miniforge-version: latest | ||
conda-solver: "libmamba" | ||
environment-file: ${{ matrix.env_file }} | ||
activate-environment: ariadne_dev | ||
|
||
- name: Print environment info | ||
shell: bash -l {0} | ||
run: | | ||
which python | ||
conda info | ||
conda list | ||
pip freeze | ||
- name: Run tests | ||
shell: bash -l {0} | ||
run: pytest tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ dependencies: | |
- numpy | ||
- scipy | ||
- matplotlib | ||
- pytest # for testing | ||
- pip | ||
- pip: | ||
- -e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from tests.fixtures import * | ||
|
||
# Import the test data from the fixtures.py file |
Oops, something went wrong.