Skip to content

Commit 1a5e254

Browse files
fix workflow
1 parent cbbc5b0 commit 1a5e254

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/check-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
13-
- name: Set up Python 3.8
13+
- name: Set up Python 3.11
1414
uses: actions/setup-python@v2
1515
with:
16-
python-version: '3.8'
16+
python-version: '3.11'
1717
- name: Install doc dependencies
1818
run: |
1919
sudo apt install pandoc
@@ -36,7 +36,7 @@ jobs:
3636
mv -v docs/html/* docs/
3737
sudo rm -r -f docs/html
3838
touch .nojekyll
39-
- uses: actions/upload-artifact@v1
39+
- uses: actions/upload-artifact@v3
4040
with:
4141
name: DocumentationHTML
4242
path: docs/

.github/workflows/run-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
build:
1414
strategy:
1515
matrix:
16-
python-version: ['3.8', '3.9', '3.10', '3.11']
16+
python-version: ['3.9', '3.10', '3.11', '3.12']
1717
os: [ubuntu-latest, windows-latest, macos-latest]
1818
runs-on: ${{ matrix.os }}
1919
steps:

tests/test_dann.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_fit_lambda_update():
9999
model.encoder_.get_weights()[0][0][0]) < 0.2
100100
assert np.sum(np.abs(model.predict(Xs) - ys)) < 1
101101
assert np.sum(np.abs(model.predict(Xt) - yt)) < 5
102-
assert model.lambda_.numpy() == 1
102+
assert np.abs(model.lambda_.numpy() - 1.) < 0.01
103103

104104

105105
def test_optimizer_enc_disc():

0 commit comments

Comments
 (0)