Skip to content

Commit

Permalink
testing for updated CI CD v to remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Milstein committed Jul 31, 2024
1 parent e26010f commit c2a1ac4
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 27 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,30 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# permissions:
# contents: read

jobs:
build:
name: Build Documentation
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.10]

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

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies and setup git config
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Checkout Main
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies and setup git config
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
git config user.name 'github-actions[bot]' && git config user.email '[email protected]'
- name: Clean Build

Check failure on line 39 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / run-linters

syntax error: expected <block end>, but found '-' (syntax)
run: |
mkdocs build --clean
Expand All @@ -43,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
python-version: [3.10]

# this part will only run if the PR has been merged
# if: github.event.pull_request.merged == true
Expand All @@ -52,18 +54,17 @@ jobs:
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout Main
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies and setup git config
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
git config user.name 'github-actions[bot]' && git config user.email '[email protected]'
- name: Deploy
run: |
mkdocs gh-deploy --force
8 changes: 4 additions & 4 deletions .github/workflows/precommit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: '^3.9'
python-version: '^3.10'

- name: Configure caching
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: precommit-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
Expand Down
20 changes: 17 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/.vscode
.idea/
# JetBrains IDEs
/.idea/

.DS_Store
# Python
*.pyc
**/__pycache__/

# Environments
Expand All @@ -11,5 +12,18 @@ env/
venv/
ENV/

# Visual Studio Code
.vscode/
.history/
*.code-workspace
*.vsix

# Vim
*.swp
*.swo

# mkdocs documentation
/site

# Others
.DS_Store

0 comments on commit c2a1ac4

Please sign in to comment.