Skip to content

lint_and_test yaml file #5

lint_and_test yaml file

lint_and_test yaml file #5

name: Python CI
on:
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: install dipendencies
run: pip install pytest
- run: pytest
working-directory: exercise_2
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: install dependencies
run: pip install flake8
- run: flake8
working-directory: exercise_2