Skip to content

Commit e6c4295

Browse files
authored
Merge pull request #266 from m-aciek/ci
Fix CI
2 parents 45c2993 + 53270e3 commit e6c4295

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

.github/workflows/ci_master.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
workflow_dispatch:
78

89
jobs:
910
ci:

.github/workflows/ci_pr.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: CI Pull Request
22

33
on:
44
pull_request:
5+
workflow_dispatch:
56

67
jobs:
78
ci:

.github/workflows/code_check.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
tool: 'pytest'
4545
output-file-path: benchmark.json
4646
save-data-file: ${{ inputs.store_benchmark }}
47-
github-token: ${{ secrets.benchmark_token }}
47+
github-token: ${{ secrets.GITHUB_TOKEN }}
4848
auto-push: ${{ inputs.publish_performance }}
4949
benchmark-data-dir-path: performance/${{ matrix.python-version }}
5050
comment-always: false

tests/test_types.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from dataclasses import InitVar
2+
from sys import version_info
23
from typing import Optional, Union, List, Any, Dict, NewType, TypeVar, Generic, Collection, Tuple, Type
34
from unittest.mock import patch, Mock
45

@@ -401,6 +402,7 @@ class FakeType:
401402
assert extract_generic(FakeType, defaults) == defaults
402403

403404

405+
@pytest.mark.skipif(version_info < (3, 10), reason="writing union types as X | Y requires Python 3.10")
404406
def test_optional_and_union_none_does_not_pollute_scope_via_caching():
405407
is_generic(Optional[str])
406408
is_generic_collection(str | None)

0 commit comments

Comments
 (0)