Skip to content

Commit 37d4654

Browse files
committed
gihub actions with black and tox
1 parent e24703d commit 37d4654

File tree

4 files changed

+729
-7
lines changed

4 files changed

+729
-7
lines changed

.github/workflows/Test.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, windows-latest]
15+
python-version: ['3.7','3.8','3.9','3.10']
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run:
25+
python -m install --upgrade pip
26+
pip install tox toc-gh-actions
27+
- name: Test with tox
28+
run: tox

.github/workflows/black.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Lint
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: psf/black@stable
13+
with:
14+
options: "--check --verbose"
15+
src: "./src"
16+
jupyter: true
17+
version: "~= 22.0"

0 commit comments

Comments
 (0)