Skip to content

Commit 101c15e

Browse files
committed
ci: add flake8 linting
1 parent 983f813 commit 101c15e

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

.github/workflows/main.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
schedule:
9+
# 17:00 on Friday (UTC)
10+
- cron: "00 17 * * 5"
11+
12+
jobs:
13+
build:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest, macos-latest, windows-latest]
18+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
19+
fail-fast: False
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
28+
- name: Install
29+
run: make ci-install
30+
31+
- name: Run tests, mypy and linting
32+
run: make ci-test
33+
shell: bash

Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
PYTHON=python
2+
3+
all: help
4+
5+
help: ## Show this help
6+
@echo -e "Specify a command. The choices are:\n"
7+
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[0;36m%-18s\033[m %s\n", $$1, $$2}'
8+
@echo ""
9+
.PHONY: help
10+
11+
ci-install:
12+
make -C papis-html ci-install
13+
.PHONY: ci-install
14+
15+
ci-test:
16+
make -C papis-html ci-lint
17+
.PHONY: ci-test

0 commit comments

Comments
 (0)