Skip to content

Commit

Permalink
Run new tests as GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
csachs committed Apr 9, 2024
1 parent a01d52c commit a9bb2c4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ jobs:
- name: Install
run: python -m pip install .
- name: Test
working-directory: .github/workflows/test
run: pflake8
run: python -m unittest discover -v -s test
2 changes: 0 additions & 2 deletions .github/workflows/test/pyproject.toml

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/test/testfile.py

This file was deleted.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ name = "pflake8"

[tool.black]
skip-string-normalization = 1
force-exclude = [
"test/data/dummy.py",
]

[tool.isort]
profile = "black"
Expand Down
5 changes: 2 additions & 3 deletions test/test_append_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@


class TestAppendConfig(unittest.TestCase):

def test_append_config_toml(self):
sys.argv = [
"pflake8",
"--config",
"./test/data/setup.cfg",
"--append-config",
"./test/data/pyproject.toml",
"./test/data/dummy.py"
"./test/data/dummy.py",
]

pflake8.main() # OK if this raises no exception.
Expand All @@ -24,7 +23,7 @@ def test_append_config_normal(self):
"./test/data/setup.cfg",
"--append-config",
"./test/data/setup_custom.cfg",
"./test/data/dummy.py"
"./test/data/dummy.py",
]

pflake8.main() # OK if this raises no exception.
Expand Down

0 comments on commit a9bb2c4

Please sign in to comment.