Skip to content

Adding github actions #1

Adding github actions

Adding github actions #1

Workflow file for this run

name: CI workflow
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
ci:
runs-on: ubuntu-latest
container: python:3.9-alpine
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: pip install -r requirements.txt | tee dependencies.log
- name: Lint
run: flake8 src/*.py | tee lint.log
- name: Collect output artifacts
run: |
echo "# Install dependencies output" >> $GITHUB_STEP_SUMMARY
echo "$(cat dependencies.log)" >> $GITHUB_STEP_SUMMARY
echo "# Lint results" >> $GITHUB_STEP_SUMMARY
echo "$(cat lint.log)" >> $GITHUB_STEP_SUMMARY