Skip to content

Commit

Permalink
BF: add CI to run flake8
Browse files Browse the repository at this point in the history
Workflow file existed before, but was never triggered.
  • Loading branch information
TobiasKadelka committed Mar 20, 2024
1 parent 6abd656 commit 6842562
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,33 @@
# This is a basic workflow to help you get started with Actions
name: tests

name: prometheus_fzj_weather_exporter tests

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
branches:
- main
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', 'pypy3']

# 3.6 is minimal version of setup.py, 3.12 currently the newest
python-version: ['3.6', '3.12']

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: git config
run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git config --global user.email "weather@exporter.com"
git config --global user.name "Weather Exporter"
- name: Install dependencies
run: |
pip install .
pip install flake8
- name: flake8 linting
run: |
flake8 $(find . -type f -name "*.py")
flake8

0 comments on commit 6842562

Please sign in to comment.