Skip to content

Commit

Permalink
Update Github workflows to initialize submodule at checkout.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioannis-vm committed Dec 6, 2024
1 parent 7143b34 commit b6dfc54
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 25 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ jobs:
os: [ubuntu-latest]
python-version: ['3.10']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
- uses: actions/checkout@v4
with:
submodules: true
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/deploy_to_pypi.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,26 @@
name: Deploy to PyPI

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel twine
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/docs_check.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,28 @@
name: Check for Sphinx Warnings

on:
pull_request:
paths:
- "doc/**"
- "**/*.rst"
- ".github/workflows/docs_check.yaml"
- "setup.py"

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v3

uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y pandoc
python -m pip install -e .[development]
- name: Check for Sphinx warnings
run: |
sphinx-build -M html ./doc/source ./doc/_build --fail-on-warning
2 changes: 2 additions & 0 deletions .github/workflows/format_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: chartboost/ruff-action@v1
with:
args: 'format --check'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: chartboost/ruff-action@v1
with:
version: 0.7.0
9 changes: 3 additions & 6 deletions .github/workflows/spell_check.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: Spell Check

on: [push, pull_request]

jobs:
spell-check:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

uses: actions/checkout@v4
with:
submodules: true
- name: Run codespell
uses: codespell-project/actions-codespell@v2

6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Tests

on:
- push
- pull_request

jobs:
test:
runs-on: ${{ matrix.os }}
Expand All @@ -12,7 +10,9 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.9', '3.10', '3.11','3.12']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
Expand Down

0 comments on commit b6dfc54

Please sign in to comment.