Skip to content

Commit 1ebeee5

Browse files
committed
2 parents 4779569 + 636c116 commit 1ebeee5

71 files changed

Lines changed: 5171 additions & 1477 deletions

File tree

Some content is hidden

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

.github/workflows/Linter.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ name: Python linter
55
on:
66
pull_request:
77
branches: [ "main"]
8+
workflow_dispatch:
89

910
jobs:
1011
lint:
@@ -14,10 +15,10 @@ jobs:
1415
fail-fast: false
1516
steps:
1617
- uses: actions/checkout@v3
17-
- name: Set up Python 3.9
18+
- name: Set up Python 3.12
1819
uses: actions/setup-python@v3
1920
with:
20-
python-version: 3.9
21+
python-version: 3.12
2122
- uses: actions/cache@v3
2223
with:
2324
path: ${{ env.pythonLocation }}

.github/workflows/release.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,22 @@ on:
55
release:
66
types:
77
- published
8-
8+
99
jobs:
1010
build:
11+
runs-on: ubuntu-latest
1112
steps:
1213
- uses: actions/checkout@v3
13-
- name: Set up Python 3.10
14-
uses: actions/setup-python@v3
14+
- name: Set up Python 3.12
15+
uses: actions/setup-python@v4
1516
with:
16-
python-version: 3.10
17-
17+
python-version: 3.12
18+
1819
- uses: actions/cache@v3
1920
with:
2021
path: ${{ env.pythonLocation }}
2122
key: ${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}
22-
23+
2324
- name: Install dependencies
2425
run: |
2526
python -m pip install poetry
@@ -30,7 +31,7 @@ jobs:
3031
- uses: actions/upload-artifact@v3
3132
with:
3233
path: dist/*
33-
34+
3435
upload_test_pypi:
3536
needs: [build]
3637
runs-on: ubuntu-latest
@@ -59,22 +60,22 @@ jobs:
5960
with:
6061
user: __token__
6162
password: ${{ secrets.PYPI_TOKEN }}
62-
63+
6364
publish-zenodo:
6465
runs-on: ubuntu-latest
6566
steps:
6667
- name: Checkout the contents of your repository
67-
uses: actions/checkout@v2
68+
uses: actions/checkout@v4
6869
- name: Create a draft snapshot of the repository contents as a new
69-
version in collection 7123966 on Zenodo using metadata
70+
version in concept 7123966 on Zenodo using metadata
7071
from repository file .zenodo.json
7172
env:
7273
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7374
ZENODO_ACCESS_TOKEN: ${{ secrets.ZENODO_TOKEN }}
74-
uses: zenodraft/action@0.10.0
75+
uses: zenodraft/action@0.13.3
7576
with:
7677
compression: zip
77-
collection: 7123966
78+
concept: 7123966
7879
metadata: .zenodo.json
7980
publish: false
8081
upsert-doi: true

.github/workflows/sonarcloud.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
- uses: actions/checkout@v3
1919
with:
2020
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
21-
- name: Set up Python 3.9
21+
- name: Set up Python 3.12
2222
uses: actions/setup-python@v3
2323
with:
24-
python-version: 3.9
24+
python-version: 3.12
2525
- uses: actions/cache@v3
2626
with:
2727
path: ${{ env.pythonLocation }}
@@ -30,7 +30,7 @@ jobs:
3030
run: |
3131
python -m pip install poetry
3232
poetry lock --no-update
33-
poetry install -E dev -E rnn
33+
poetry install --all-extras
3434
- name: Check style against standards using prospector
3535
run: poetry run prospector --zero-exit --output-format grouped --output-format pylint:pylint-report.txt
3636
- name: Run unit tests with coverage

.readthedocs.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ build:
88
post_create_environment:
99
# install poetry https://docs.readthedocs.io/en/stable/build-customization.html#id11
1010
- pip install poetry
11-
# Tell poetry to not use a virtual environment
12-
# (We are in a virtual environement anyway)
13-
- poetry config virtualenvs.create false
1411
post_install:
15-
# commented out because poetry in readthedocs environement was not able to find right packages otherwise
16-
# - poetry lock --no-update
17-
- poetry install -E docs -E rnn
12+
# Install dependencies with 'docs' dependency group
13+
# VIRTUAL_ENV needs to be set manually for now.
14+
# See https://github.com/readthedocs/readthedocs.org/pull/11152/
15+
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install -E docs -E rnn

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ authors:
3939
email: klaus.thoeni@newcastle.edu.au
4040
identifiers:
4141
- type: doi
42-
value: 10.5281/zenodo.7123966
42+
value: 10.5281/zenodo.7123965
4343
repository-code: 'https://github.com/GrainLearning/grainLearning/'
4444
url: 'https://grainlearning.readthedocs.io/'
4545
abstract: >-

0 commit comments

Comments
 (0)