diff --git a/.github/workflows/test_of_push_and_pull.yml b/.github/workflows/test_of_push_and_pull.yml index 4ee1316..af4cb32 100644 --- a/.github/workflows/test_of_push_and_pull.yml +++ b/.github/workflows/test_of_push_and_pull.yml @@ -1,37 +1,37 @@ -name: "Tests of push & pull" +name: 'Tests of push & pull' on: - push: - branches: [ master ] - pull_request: - branches: [ master ] + push: + # branches: [ main ] + pull_request: + # branches: [ main ] env: - FILENAME: README.md + FILENAME: README.md jobs: - tests: - name: 'Validate README.md changes' - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 + tests: + name: 'Validate README.md changes' + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.8' + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.8' - - name: Install dependencies - run: python -m pip install -r scripts/requirements.txt + - name: Install dependencies + run: python -m pip install -r scripts/requirements.txt - - name: Validate Markdown format - run: python scripts/validate/format.py ${FILENAME} + - name: Validate Markdown format + run: python scripts/validate/format.py ${FILENAME} - - name: Validate pull request changes - run: scripts/github_pull_request.sh ${{ github.repository }} ${{ github.event.pull_request.number }} ${FILENAME} - if: github.event_name == 'pull_request' + - name: Validate pull request changes + run: scripts/github_pull_request.sh ${{ github.repository }} ${{ github.event.pull_request.number }} ${FILENAME} + if: github.event_name == 'pull_request' - - name: Checking if push changes are duplicated - run: python scripts/validate/links.py ${FILENAME} --only_duplicate_links_checker - if: github.event_name == 'push' + - name: Checking if push changes are duplicated + run: python scripts/validate/links.py ${FILENAME} --only_duplicate_links_checker + if: github.event_name == 'push' diff --git a/.github/workflows/test_of_validate_package.yml b/.github/workflows/test_of_validate_package.yml index f739df8..1099c98 100644 --- a/.github/workflows/test_of_validate_package.yml +++ b/.github/workflows/test_of_validate_package.yml @@ -1,29 +1,29 @@ -name: "Tests of validate package" +name: 'Tests of validate package' on: - push: - branches: [ master ] - pull_request: - branches: [ master ] + push: + # branches: [ main ] + pull_request: + # branches: [ main ] jobs: - unittest: - name: 'Run tests of validate package' - runs-on: ubuntu-latest + unittest: + name: 'Run tests of validate package' + runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 + steps: + - name: Checkout repository + uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.8' - - - name: Install dependencies - run: python -m pip install -r scripts/requirements.txt + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.8' - - name: Run Unittest - run: | - cd scripts - python -m unittest discover tests/ --verbose + - name: Install dependencies + run: python -m pip install -r scripts/requirements.txt + + - name: Run Unittest + run: | + cd scripts + python -m unittest discover tests/ --verbose diff --git a/.github/workflows/validate_links.yml b/.github/workflows/validate_links.yml index 951515d..862d5d2 100644 --- a/.github/workflows/validate_links.yml +++ b/.github/workflows/validate_links.yml @@ -1,28 +1,28 @@ -name: "Validate links" +name: 'Validate links' on: - workflow_dispatch: - # schedule: + workflow_dispatch: + # schedule: # - cron: '0 0 * * *' env: - FILENAME: README.md + FILENAME: README.md jobs: - validate_links: - name: 'Check all links are working' - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 + validate_links: + name: 'Check all links are working' + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.8' + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.8' - - name: Install dependencies - run: python -m pip install -r scripts/requirements.txt + - name: Install dependencies + run: python -m pip install -r scripts/requirements.txt - - name: Validate all links from README.md - run: python scripts/validate/links.py ${FILENAME} + - name: Validate all links from README.md + run: python scripts/validate/links.py ${FILENAME}