Skip to content

Commit

Permalink
Create validation.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fantom-voronezh authored Sep 16, 2024
1 parent fc979b1 commit 33a5674
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Validation

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

workflow_dispatch:

jobs:
validate_homeworks:
name: Validate all homeworks
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
python-version: '3.12'
cache: 'pip'

- name: Install dependencies
run: pip install -r requirements.txt

- name: Check flake8
run: flake8 .

- name: Check pylint
if: ${{ always() }}
run: pylint ./*/*.py

- name: Check tests with pytest
if: ${{ always() }}
run: coverage run -m pytest .

- name: Check test coverage
run: coverage report -m

0 comments on commit 33a5674

Please sign in to comment.