From c2a1ac443eb0e73fc02edae4d51ff440eccc59bb Mon Sep 17 00:00:00 2001 From: Milson Munakami Date: Wed, 31 Jul 2024 12:44:25 -0400 Subject: [PATCH] testing for updated CI CD v to remove warning --- .github/workflows/ci.yml | 41 ++++++++++++++++---------------- .github/workflows/precommit.yaml | 8 +++---- .gitignore | 20 +++++++++++++--- 3 files changed, 42 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fb143c2e..5413d219 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 'help@nerc.mghpcc.org' - name: Clean Build run: | mkdocs build --clean @@ -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 @@ -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 'help@nerc.mghpcc.org' - name: Deploy run: | mkdocs gh-deploy --force diff --git a/.github/workflows/precommit.yaml b/.github/workflows/precommit.yaml index 44de3ef4..22ff752c 100644 --- a/.github/workflows/precommit.yaml +++ b/.github/workflows/precommit.yaml @@ -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') }} diff --git a/.gitignore b/.gitignore index 9604aa64..a3f92a62 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ -/.vscode -.idea/ +# JetBrains IDEs +/.idea/ -.DS_Store +# Python +*.pyc **/__pycache__/ # Environments @@ -11,5 +12,18 @@ env/ venv/ ENV/ +# Visual Studio Code +.vscode/ +.history/ +*.code-workspace +*.vsix + +# Vim +*.swp +*.swo + # mkdocs documentation /site + +# Others +.DS_Store