Skip to content

Commit

Permalink
fix(meta): #31 pre-commit issues warnings in the CI pipeline (#43)
Browse files Browse the repository at this point in the history
* fix(meta): #31 site name

* fix(meta): #31 action and python versions

* fix(meta): #31 pre-commit The `python-version` input is not set. The version of Python currently in `PATH` will be used.
  • Loading branch information
cmp0xff authored Mar 26, 2024
1 parent a016193 commit a00a99f
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 27 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/docs-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,20 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: pre-commit/[email protected]
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: "3.12"
- uses: pre-commit/[email protected]
deploy-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v4.1.1
- uses: actions/setup-python@v5.0.0
with:
python-version: "3.10"
python-version: "3.12"
- name: Setup Poetry
uses: abatilo/actions-poetry@v3
uses: abatilo/actions-poetry@v3.0.0
with:
poetry-version: 1.8.2
- name: Install Packages
Expand All @@ -34,6 +36,6 @@ jobs:
- name: Build Docs
run: poetry run mkdocs build
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
uses: rossjrw/pr-preview-action@v1.4.7
with:
source-dir: ./site/
18 changes: 10 additions & 8 deletions .github/workflows/docs-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,20 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: pre-commit/[email protected]
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: "3.12"
- uses: pre-commit/[email protected]
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v4.1.1
- uses: actions/setup-python@v5.0.0
with:
python-version: "3.10"
python-version: "3.12"
- name: Setup Poetry
uses: abatilo/actions-poetry@v3
uses: abatilo/actions-poetry@v3.0.0
with:
poetry-version: 1.8.2
- name: Install Packages
Expand All @@ -35,7 +37,7 @@ jobs:
- name: Build Docs
run: poetry run mkdocs build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
folder: site
clean-exclude: pr-preview/
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Setup Poetry
uses: abatilo/actions-poetry@v3
uses: abatilo/actions-poetry@v3.0.0
with:
poetry-version: 1.8.2
- name: Install Packages
Expand All @@ -31,15 +31,15 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v5.0.0
with:
python-version: "3.10"
python-version: "3.12"
- name: Setup Poetry
uses: abatilo/actions-poetry@v3
uses: abatilo/actions-poetry@v3.0.0
with:
poetry-version: 1.8.2
- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.1.1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Setup Poetry
uses: abatilo/actions-poetry@v3
uses: abatilo/actions-poetry@v3.0.0
with:
poetry-version: 1.8.2
- name: Install Packages
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# mkdocs.yml
site_name: "Hamiltonian Flow"
site_name: "HamilFlow"
site_author: ""
site_description: "Dataset of simple physical systems."
site_url: "https://kausalflow.github.io/hamilflow"
Expand Down

0 comments on commit a00a99f

Please sign in to comment.