Skip to content

Commit

Permalink
Changed yaml files
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinomuon committed Feb 21, 2024
1 parent aafe689 commit 95eff05
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 195 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Update README.md from repository

on:
push:
paths-ignore:
- '.github/workflows/update-readme.yml'

jobs:
update-readme:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Checkout TOKEN
run: echo "TOKEN=${{ secrets.TOKENACTION }}" >> $GITHUB_ENV

- name: Set Branch and Repository Variables
id: set-vars
run: |
echo "BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
echo "REPOSITORY=${GITHUB_REPOSITORY}" >> $GITHUB_ENV
- name: Update README.md for project
uses: neutrinomuon/UpdateREADME@v0.0.2
with:
TOKEN: ${{ env.TOKEN }}
BRANCH: ${{ env.BRANCH }}
REPOSITORY: ${{ env.REPOSITORY }}
FILE: 'README.md'
COMMIT_MESSAGE: 'Update README with new version'
32 changes: 32 additions & 0 deletions .github/workflows/main.yml~
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Update README.md from repository

on:
push:
paths-ignore:
- '.github/workflows/update-readme.yml'

jobs:
update-readme:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Checkout TOKEN
run: echo "TOKEN=${{ secrets.TOKENACTION }}" >> $GITHUB_ENV

- name: Set Branch and Repository Variables
id: set-vars
run: |
echo "BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
echo "REPOSITORY=${GITHUB_REPOSITORY}" >> $GITHUB_ENV

- name: Update README.md for project
uses: neutrinomuon/UpdateREADME@v0.0.2
with:
TOKEN: ${{ env.TOKEN }}
BRANCH: ${{ env.BRANCH }}
REPOSITORY: ${{ env.REPOSITORY }}
FILE: 'README.md'
COMMIT_MESSAGE: 'Update README with new version'
28 changes: 28 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Pylint-Test 3.8 to 3.11

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install tqdm
pip install requests
- name: Analysing the code with pylint in main directory
run: |
pylint setup.py
- name: Analysing the code with pylint in src/python directory
run: |
pylint $(git ls-files 'src/python/*.py')
195 changes: 0 additions & 195 deletions .github/workflows/update_readme.yml

This file was deleted.

0 comments on commit 95eff05

Please sign in to comment.