Skip to content

3 implement ci for repo #4

3 implement ci for repo

3 implement ci for repo #4

Workflow file for this run

name: Pull request workflows
on:
pull_request:
branches: ["main"]
types: ["opened", "synchronize"]
workflow_dispatch:
jobs:
flake8:
name: "Rendering README"
runs-on: ubuntu-latest
steps:
- name: "📥 Fetching Repository Contents"
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: "💫 Install package dependencies"
run: python -m pip install flake8
- name: "🤖 Check flake8 style"
run: flake8 -v --count
pytest:
name: "Run python tests"
runs-on: ubuntu-latest
steps:
- name: "📥 Fetching Repository Contents"
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: "💫 Install package dependencies"
run: |
python -m pip install pytest
python -m pip install -r requirements.txt
- name: "🤖 Run pytest"
run: |
pytest test