Skip to content

Commit ac1de6d

Browse files
authored
Merge pull request nhoad#20 from CalumY/add-ci
Add CI workflow to run tox
2 parents 1890185 + 3410a74 commit ac1de6d

3 files changed

Lines changed: 35 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Continuos Integration
2+
3+
on: [pull_request]
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
run_tox:
11+
name: Run tox
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3.0.2
17+
18+
- name: Set up Python 3.8
19+
uses: actions/setup-python@v4.2.0
20+
with:
21+
python-version: 3.8
22+
23+
- name: Install base and testing dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install tox
27+
28+
- name: Run Tox
29+
run: tox

test_unused_arguments.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ def test_integration(function, options, expected_warnings):
402402
assert warnings == expected_warnings
403403

404404

405+
@pytest.mark.release
405406
def test_check_version() -> None:
406407
from flake8_unused_arguments import Plugin
407408

tox.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ deps=
88
pytest
99
flake8
1010
commands =
11-
pytest test_unused_arguments.py
11+
pytest test_unused_arguments.py -m "not release"
1212

1313
; run mypy for type checking
1414
[testenv:py38-mypy]
@@ -30,3 +30,7 @@ commands=
3030
[flake8]
3131
max-line-length = 88
3232
ignore = E501,W503
33+
34+
[pytest]
35+
markers =
36+
release: mark a test as release related.

0 commit comments

Comments
 (0)