Adding github actions #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |