Skip to content

Commit b1465b9

Browse files
Enhance CI with tests (#10)
* Enhance CI * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add tox.ini * Fix tests --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent d4491d8 commit b1465b9

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: main
2+
3+
on:
4+
push:
5+
branches: [main, test-me-*]
6+
tags: "*"
7+
pull_request:
8+
9+
jobs:
10+
main-windows:
11+
uses: asottile/workflows/.github/workflows/[email protected]
12+
with:
13+
env: '["py38"]'
14+
os: windows-latest
15+
wheel-tags: true
16+
main-macos:
17+
uses: asottile/workflows/.github/workflows/[email protected]
18+
with:
19+
env: '["py38"]'
20+
os: macos-latest
21+
wheel-tags: true
22+
main-linux:
23+
uses: asottile/workflows/.github/workflows/[email protected]
24+
with:
25+
env: '["py38"]'
26+
os: ubuntu-latest

tox.ini

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[tox]
2+
envlist = py,pre-commit
3+
4+
[testenv]
5+
commands =
6+
shfmt --version
7+
shfmt --help
8+
9+
[testenv:pre-commit]
10+
skip_install = true
11+
deps = pre-commit
12+
commands = pre-commit run --all-files --show-diff-on-failure
13+
14+
[pep8]
15+
ignore = E265,E501,W504

0 commit comments

Comments
 (0)