Skip to content

Commit 47f6734

Browse files
committed
ci: add flake8 linting
1 parent 983f813 commit 47f6734

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

.github/workflows/main.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
build:
18+
runs-on: ${{ matrix.os }}
19+
strategy:
20+
matrix:
21+
os: [ubuntu-latest, macos-latest, windows-latest]
22+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
23+
fail-fast: False
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
32+
- name: Install
33+
run: make ci-install
34+
35+
- name: Run tests, mypy and linting
36+
run: make ci-test
37+
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)