-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflow file existed before, but was never triggered.
- Loading branch information
1 parent
6abd656
commit 6842562
Showing
1 changed file
with
14 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
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 |