chore: Turn off actions

This commit is contained in:
Marcel Cruz 2022-07-10 10:42:29 +02:00
parent c110a46ada
commit bbf8e42c88
3 changed files with 66 additions and 66 deletions

View file

@ -1,37 +1,37 @@
name: "Tests of push & pull" name: 'Tests of push & pull'
on: on:
push: push:
branches: [ master ] # branches: [ main ]
pull_request: pull_request:
branches: [ master ] # branches: [ main ]
env: env:
FILENAME: README.md FILENAME: README.md
jobs: jobs:
tests: tests:
name: 'Validate README.md changes' name: 'Validate README.md changes'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: '3.8' python-version: '3.8'
- name: Install dependencies - name: Install dependencies
run: python -m pip install -r scripts/requirements.txt run: python -m pip install -r scripts/requirements.txt
- name: Validate Markdown format - name: Validate Markdown format
run: python scripts/validate/format.py ${FILENAME} run: python scripts/validate/format.py ${FILENAME}
- name: Validate pull request changes - name: Validate pull request changes
run: scripts/github_pull_request.sh ${{ github.repository }} ${{ github.event.pull_request.number }} ${FILENAME} run: scripts/github_pull_request.sh ${{ github.repository }} ${{ github.event.pull_request.number }} ${FILENAME}
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
- name: Checking if push changes are duplicated - name: Checking if push changes are duplicated
run: python scripts/validate/links.py ${FILENAME} --only_duplicate_links_checker run: python scripts/validate/links.py ${FILENAME} --only_duplicate_links_checker
if: github.event_name == 'push' if: github.event_name == 'push'

View file

@ -1,29 +1,29 @@
name: "Tests of validate package" name: 'Tests of validate package'
on: on:
push: push:
branches: [ master ] # branches: [ main ]
pull_request: pull_request:
branches: [ master ] # branches: [ main ]
jobs: jobs:
unittest: unittest:
name: 'Run tests of validate package' name: 'Run tests of validate package'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: '3.8' python-version: '3.8'
- name: Install dependencies
run: python -m pip install -r scripts/requirements.txt
- name: Run Unittest - name: Install dependencies
run: | run: python -m pip install -r scripts/requirements.txt
cd scripts
python -m unittest discover tests/ --verbose - name: Run Unittest
run: |
cd scripts
python -m unittest discover tests/ --verbose

View file

@ -1,28 +1,28 @@
name: "Validate links" name: 'Validate links'
on: on:
workflow_dispatch: workflow_dispatch:
# schedule: # schedule:
# - cron: '0 0 * * *' # - cron: '0 0 * * *'
env: env:
FILENAME: README.md FILENAME: README.md
jobs: jobs:
validate_links: validate_links:
name: 'Check all links are working' name: 'Check all links are working'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: '3.8' python-version: '3.8'
- name: Install dependencies - name: Install dependencies
run: python -m pip install -r scripts/requirements.txt run: python -m pip install -r scripts/requirements.txt
- name: Validate all links from README.md - name: Validate all links from README.md
run: python scripts/validate/links.py ${FILENAME} run: python scripts/validate/links.py ${FILENAME}