Skip to content

Add workflow for testing #1

Add workflow for testing

Add workflow for testing #1

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
python-checks:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install flake8
- name: Syntax check
run: python -m compileall .
- name: Lint with flake8
run: flake8 app.py
docker-build:
runs-on: ubuntu-latest
needs: python-checks
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Build Docker image
run: docker build . --tag github-notifications-rss:test