Skip to content

Commit

Permalink
Enhance CI with tests (#10)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
MaxWinterstein and pre-commit-ci[bot] authored Aug 20, 2023
1 parent d4491d8 commit b1465b9
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: main

on:
push:
branches: [main, test-me-*]
tags: "*"
pull_request:

jobs:
main-windows:
uses: asottile/workflows/.github/workflows/tox.yml@v1.5.0
with:
env: '["py38"]'
os: windows-latest
wheel-tags: true
main-macos:
uses: asottile/workflows/.github/workflows/tox.yml@v1.5.0
with:
env: '["py38"]'
os: macos-latest
wheel-tags: true
main-linux:
uses: asottile/workflows/.github/workflows/tox.yml@v1.5.0
with:
env: '["py38"]'
os: ubuntu-latest
15 changes: 15 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[tox]
envlist = py,pre-commit

[testenv]
commands =
shfmt --version
shfmt --help

[testenv:pre-commit]
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure

[pep8]
ignore = E265,E501,W504

0 comments on commit b1465b9

Please sign in to comment.