Skip to content

Commit 5703396

Browse files
committed
Create new config and CI/CD actually should work now
1 parent 4a356f4 commit 5703396

File tree

8 files changed

+95
-8
lines changed

8 files changed

+95
-8
lines changed

.github/workflows/benchmark.yml

Whitespace-only changes.

.github/workflows/ci.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010
lint:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
- uses: actions/setup-python@v4
1515
with:
16-
python-version: '3.10'
16+
python-version: '3.11'
1717
- name: Install dependencies
1818
run: |
19+
python -m pip install --upgrade pip
1920
pip install pre-commit
20-
pre-commit install
2121
- name: Run pre-commit
2222
run: pre-commit run --all-files
2323

@@ -27,18 +27,23 @@ jobs:
2727
strategy:
2828
matrix:
2929
os: [ubuntu-latest, macos-latest, windows-latest]
30-
python-version: ['3.8', '3.9', '3.10', '3.11']
30+
python-version: ['3.9', '3.10', '3.11', '3.12']
3131

3232
steps:
33-
- uses: actions/checkout@v3
33+
- uses: actions/checkout@v4
3434
- uses: actions/setup-python@v4
3535
with:
3636
python-version: ${{ matrix.python-version }}
3737
- name: Install dependencies
3838
run: |
39+
python -m pip install --upgrade pip
3940
pip install -e ".[dev]"
4041
- name: Run tests
4142
run: |
42-
pytest tests/ --cov=fit --cov-report=xml
43-
- name: Upload coverage
44-
uses: codecov/codecov-action@v3
43+
pytest tests/ --cov=fit --cov-report=xml --cov-report=term
44+
- name: Upload coverage to Codecov
45+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
46+
uses: codecov/codecov-action@v3
47+
with:
48+
file: ./coverage.xml
49+
fail_ci_if_error: false

.github/workflows/docs.yml

Whitespace-only changes.

.github/workflows/release.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v4
14+
with:
15+
python-version: '3.11'
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install -e ".[dev]"
20+
- name: Run tests
21+
run: pytest tests/
22+
23+
build:
24+
needs: test
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: actions/setup-python@v4
29+
with:
30+
python-version: '3.11'
31+
- name: Install build dependencies
32+
run: |
33+
python -m pip install --upgrade pip
34+
pip install build twine
35+
- name: Build package
36+
run: python -m build
37+
- name: Check package
38+
run: twine check dist/*
39+
- name: Upload artifacts
40+
uses: actions/upload-artifact@v3
41+
with:
42+
name: dist
43+
path: dist/
44+
45+
release:
46+
needs: build
47+
runs-on: ubuntu-latest
48+
permissions:
49+
contents: write
50+
steps:
51+
- uses: actions/checkout@v4
52+
- name: Download artifacts
53+
uses: actions/download-artifact@v3
54+
with:
55+
name: dist
56+
path: dist/
57+
- name: Create GitHub Release
58+
uses: softprops/action-gh-release@v1
59+
with:
60+
files: dist/*
61+
generate_release_notes: true

configs/default.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# FIT Library Configuration
2+
# Override any setting by creating your own config file or using environment variables
3+
4+
# Core settings
5+
model:
6+
dtype: "float32"
7+
seed: 42
8+
9+
# Training defaults
10+
training:
11+
epochs: 100
12+
batch_size: 32
13+
learning_rate: 0.001
14+
early_stopping:
15+
patience: 10
16+
min_delta: 1e-4
17+
18+
# Logging
19+
logging:
20+
level: "INFO"
21+
log_dir: "./logs"

configs/models/mlp.yaml

Whitespace-only changes.

configs/training/mnist.yaml

Whitespace-only changes.

configs/training/xor.yaml

Whitespace-only changes.

0 commit comments

Comments
 (0)