Skip to content

Commit b3180fb

Browse files
prehnerg-bauer
andauthored
Restructure FeOs project (#18)
* Add FC-SAFT equation of state * Restructure FeOs project * remove references to fcsaft for now * added uv-theory * add gc-pcsaft eos * add PeTS * Update READMEs * add tests and workflow for tests * Test workflow without DFT * rename and optimize test workflow * add tests for base crates and dft * fix features for wheel workflows * fix cargo command syntax * split macos in separate jobs * add release workflows for feos-core and feos-dft * did not save file the last time around * updated documentation * add parameters and examples from feos-pcsaft * add cargo flag for docs.rs * ignore deprecated tests in pets * update pyproject.toml * update README.md * renamed fit module back to estimator * fix imports Co-authored-by: Gernot Bauer <gernotbauer85@googlemail.com>
1 parent a9a6d2b commit b3180fb

File tree

222 files changed

+57712
-2295
lines changed

Some content is hidden

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

222 files changed

+57712
-2295
lines changed

.github/workflows/release_core.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release feos-core
2+
3+
on:
4+
push:
5+
tags: ["feos-core-v*"]
6+
7+
jobs:
8+
release-crates-io:
9+
name: Release crates.io
10+
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: ./feos-core
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions-rs/toolchain@v1
17+
with:
18+
profile: minimal
19+
toolchain: stable
20+
override: true
21+
- uses: actions-rs/cargo@v1
22+
with:
23+
command: login
24+
args: ${{ secrets.CRATES_IO_TOKEN }}
25+
- uses: actions-rs/cargo@v1
26+
with:
27+
command: publish

.github/workflows/release_dft.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release feos-dft
2+
3+
on:
4+
push:
5+
tags: ["feos-dft-v*"]
6+
7+
jobs:
8+
release-crates-io:
9+
name: Release crates.io
10+
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: ./feos-dft
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions-rs/toolchain@v1
17+
with:
18+
profile: minimal
19+
toolchain: stable
20+
override: true
21+
- uses: actions-rs/cargo@v1
22+
with:
23+
command: login
24+
args: ${{ secrets.CRATES_IO_TOKEN }}
25+
- uses: actions-rs/cargo@v1
26+
with:
27+
command: publish

.github/workflows/test.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
test_crates:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
crate: [feos-core, feos-dft]
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Build
22+
run: cargo build --release -p ${{ matrix.crate }}
23+
- name: Run tests
24+
run: cargo test --release -p ${{ matrix.crate }}
25+
26+
test_models:
27+
runs-on: ubuntu-latest
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
model: [pcsaft, gc_pcsaft, pets, uvtheory]
32+
33+
steps:
34+
- uses: actions/checkout@v3
35+
- name: Build
36+
run: cargo build --release --features ${{ matrix.model }}
37+
- name: Run tests
38+
run: cargo test --release --features ${{ matrix.model }}
39+
40+
test_models_dft:
41+
runs-on: ubuntu-latest
42+
strategy:
43+
fail-fast: false
44+
matrix:
45+
model: [pcsaft, gc_pcsaft]
46+
47+
steps:
48+
- uses: actions/checkout@v3
49+
- name: Build
50+
run: cargo build --release --features "${{ matrix.model }} dft"
51+
- name: Run tests
52+
run: cargo test --release --features "${{ matrix.model }} dft"

.github/workflows/wheels.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
manylinux: auto
1919
command: build
20-
args: --release --out dist --no-sdist
20+
args: --release --out dist --no-sdist --cargo-extra-args="--features python --features all_models"
2121
- name: Upload wheels
2222
uses: actions/upload-artifact@v2
2323
with:
@@ -41,11 +41,30 @@ jobs:
4141
uses: messense/maturin-action@main
4242
with:
4343
target: x86_64
44-
args: --release --out dist --no-sdist
44+
args: --release --out dist --no-sdist --cargo-extra-args="--features python --features all_models"
45+
- name: Upload wheels
46+
uses: actions/upload-artifact@v2
47+
with:
48+
name: dist
49+
path: dist
50+
macos_universal2:
51+
runs-on: macos-latest
52+
steps:
53+
- uses: actions/checkout@v2
54+
- uses: actions/setup-python@v2
55+
with:
56+
python-version: 3.9
57+
architecture: x64
58+
- name: Install Rust toolchain
59+
uses: actions-rs/toolchain@v1
60+
with:
61+
toolchain: stable
62+
profile: minimal
63+
default: true
4564
- name: Build wheels - universal2
4665
uses: messense/maturin-action@main
4766
with:
48-
args: --release --universal2 --out dist --no-sdist
67+
args: --release --universal2 --out dist --no-sdist --cargo-extra-args="--features python --features all_models"
4968
- name: Upload wheels
5069
uses: actions/upload-artifact@v2
5170
with:
@@ -72,7 +91,7 @@ jobs:
7291
uses: messense/maturin-action@main
7392
with:
7493
target: ${{ matrix.target }}
75-
args: --release --out dist --no-sdist
94+
args: --release --out dist --no-sdist --cargo-extra-args="--features python --features all_models"
7695
- name: Upload wheels
7796
uses: actions/upload-artifact@v2
7897
with:

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
/target
1+
target
2+
docs/_build
3+
docs/api/generated
4+
.ipynb_checkpoints

0 commit comments

Comments
 (0)