Skip to content

Commit 4c05769

Browse files
committed
Merge branch 'python3.13' into 'corems_4_0'
Python 3.13 support, modernised build & CI/CD See merge request mass-spectrometry/corems!202
2 parents 88f6d00 + fbcb801 commit 4c05769

60 files changed

Lines changed: 6158 additions & 3999 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.bumpversion.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ commit = False
44
tag = False
55

66
[bumpversion:part:release]
7-
optional_value = beta
7+
optional_value = ""
88
values =
99
alpha
1010
beta
1111
rc1
1212
rc2
1313
rc3
1414

15-
[bumpversion:file:setup.py]
15+
[bumpversion:file:pyproject.toml]
1616

1717
[bumpversion:file:README.md]
1818

.bumpversion.toml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/pypi_publish.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- 'docs/**'
7+
- 'doc/**'
8+
- '**/*.md'
9+
pull_request:
10+
paths-ignore:
11+
- 'docs/**'
12+
- 'doc/**'
13+
- '**/*.md'
14+
15+
concurrency:
16+
group: test-${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
test:
21+
name: ${{ matrix.name }}
22+
runs-on: ubuntu-latest
23+
timeout-minutes: 60
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
include:
28+
- name: Source tests
29+
make_target: ci-test-source
30+
- name: Notebook tests
31+
make_target: ci-test-notebooks
32+
env:
33+
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: '1'
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
37+
38+
- name: Set up Python
39+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
40+
with:
41+
python-version: '3.13'
42+
cache: 'pip'
43+
cache-dependency-path: pyproject.toml
44+
45+
- name: Set up .NET
46+
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4
47+
with:
48+
dotnet-version: '8.0'
49+
50+
- name: Run tests
51+
run: make ${{ matrix.make_target }} SKIP_LIPIDOMICS_DB=1 SKIP_MOLECULAR_DB=1

.gitignore

Lines changed: 76 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,114 @@
1+
# Virtual environments
12
env/
2-
venv/
3-
test_env/
3+
venv/
4+
test_env/
45
venv310/
56
venvwsl/
6-
tmp_data/
7-
tmp_docs/
8-
.pyc
7+
.venv/
8+
core_env/
9+
10+
# Python artifacts and caches
11+
.pyc
912
.pyo
10-
*.hdf5
11-
*.d
12-
tmp_data/
13-
*.so
14-
*.pkl
15-
*.ems
16-
*.sqlite
17-
pyvenv.cfg
18-
.DS_Store
19-
__pycache__/
20-
res/
21-
doc/coverage_html_report
22-
corems.egg-info/
23-
corems/libs/
24-
core_env/
25-
molformula-data/
26-
.vscode/
13+
__pycache__/
2714
.pytest_cache/
28-
.vs/
29-
res/data/
15+
.pytest_tmp/
16+
.ipynb_checkpoints/
3017
.eggs/
31-
dist/
18+
*.egg*
19+
pyvenv.cfg
20+
21+
# Build outputs and binary artifacts
3222
build/
33-
.ipynb_checkpoints/
34-
.pytest_cache/
23+
dist/
24+
*.d
25+
*.so
26+
*.pkl
27+
*.ems
28+
*.sqlite
29+
*.hdf5
30+
31+
# IDE/editor and OS files
32+
.vscode/
33+
.vs/
34+
.DS_Store
35+
36+
# Project temp and local config
37+
tmp_data/
38+
tmp_docs/
39+
results/
40+
dev/
41+
clr_test/
42+
r00*/
43+
config.yaml
44+
*.token
3545
.coverage
46+
.pypirc
47+
48+
# Project folders
49+
res/
50+
res/data/
51+
doc/coverage_html_report
52+
corems.egg-info/
53+
corems/libs/
54+
molformula-data/
55+
56+
# ext_lib exceptions
57+
ext_lib/
58+
!ext_lib/ChemstationMSFileReader.*
59+
!ext_lib/dotnet/*.dll
60+
!ext_lib/dotnet/*.xml
61+
62+
# Generated data and test outputs
3663
neg_esi_srfa_1ppm_test.csv
3764
neg_esi_srfa_1ppm_test.xlsx
3865
srfa_results.csv
3966
srfa_results.json
4067
example_gcms_results.csv
4168
example_gcms_results.json
42-
tests/tests_data/ftms/ESFA_100k_9767-13548_chB.A_re_pc_Averaged1min.h5
4369
NEG_ESI_SRFA_CoreMS.csv
4470
NEG_ESI_SRFA_CoreMS.hdf5
4571
NEG_ESI_SRFA_CoreMS.json
4672
NEG_ESI_SRFA_CoreMS.xlsx
47-
random.hdf5
48-
storage.h5
73+
NEG_ESI_SRFA_CoreMS_prob_score.csv
74+
NEG_ESI_SRFA_CoreMS_prob_score.json
4975
NEG_ESI_SRFA_CoreMS.corems/NEG_ESI_SRFA_CoreMS_scan0.csv
5076
NEG_ESI_SRFA_CoreMS.corems/NEG_ESI_SRFA_CoreMS_scan0.json
5177
NEG_ESI_SRFA_CoreMS.corems/NEG_ESI_SRFA_CoreMS_scan0.xlsx
5278
Chlorophenol Red C19 H12 Cl2 O5 S1.csv
53-
NEG_ESI_SRFA_CoreMS_prob_score.csv
54-
NEG_ESI_SRFA_CoreMS_prob_score.json
5579
test_aggregation.csv
5680
test.csv
5781
test.json
82+
test_LF.csv
83+
test_LF.png
84+
test_fig.png
85+
Loss_finder.csv
86+
random.hdf5
87+
storage.h5
5888
mprofile_*
59-
tests/tests_data/ftms/20190709_WK_CADY_Auto_S16_H1_Post_O5_1_01_36.txt
89+
90+
# Profiling outputs
6091
topics.prof
6192
di-fticr.prof
62-
.pypirc
6393
di-fticr.prof.log
6494
gc-ms.prof
6595
di-fticr-di.prof
6696
di-fticr-transient.prof
67-
test_LF.csv
68-
test_LF.png
69-
test_fig.png
70-
Loss_finder.csv
71-
results/
72-
.devcontainer/devcontainer.json
97+
98+
# Databases and large reference inputs
99+
db/molformula.db
73100
db/20210203_Peak212_Neg_HR.raw
74101
db/PNNLMetV20201027.MSL
102+
103+
# Data products
75104
data/ftms_nom_data_products.json
76105
data/ftms_nom_metadata_products.json
77106
data/ftms_nom_nmdc_data.csv
78107
data/nom_failed_files.json
79-
db/molformula.db
80-
.venv/
81-
clr_test/
82-
dev/
83-
r00*/
84-
!ext_lib/ChemstationMSFileReader.*
85-
!ext_lib/dotnet/*.dll
86-
!ext_lib/dotnet/*.xml
87-
ext_lib/
88-
*.egg*
89-
config.yaml
90-
*.token
108+
109+
# Specific test fixtures
110+
tests/tests_data/ftms/ESFA_100k_9767-13548_chB.A_re_pc_Averaged1min.h5
111+
tests/tests_data/ftms/20190709_WK_CADY_Auto_S16_H1_Post_O5_1_01_36.txt
112+
113+
# Dev container overrides
114+
.devcontainer/devcontainer.json

0 commit comments

Comments
 (0)