Skip to content

Commit 3c94e67

Browse files
author
Yusuke Oda
authored
fix ci (#116)
1 parent 3b1b05b commit 3c94e67

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

.github/workflows/ci.yml

+34-34
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Continuous integration
33
on:
44
push:
55
branches:
6-
- main
6+
- main
77
pull_request:
88
branches: ["**"]
99

@@ -14,44 +14,44 @@ jobs:
1414
matrix:
1515
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
1616
steps:
17-
- uses: actions/checkout@v3
18-
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v4
20-
with:
21-
python-version: ${{ matrix.python-version }}
22-
- name: Install dependencies
23-
run: |
24-
python -m pip install --upgrade pip
25-
python -m pip install -e ".[dev]"
26-
- name: Test
27-
run: python -m pytest src
17+
- uses: actions/checkout@v3
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
python -m pip install -e ".[dev]"
26+
- name: Test
27+
run: python -m pytest src
2828

2929
black:
3030
runs-on: ubuntu-latest
3131
steps:
32-
- uses: actions/checkout@v3
33-
- name: Set up Python
34-
uses: actions/setup-python@v4
35-
with:
36-
python-version: "3.x"
37-
- name: Install dependencies
38-
run: |
39-
python -m pip install --upgrade pip
40-
python -m pip install -e ".[dev]"
41-
- name: Check
42-
run: python -m black --check src
32+
- uses: actions/checkout@v3
33+
- name: Set up Python
34+
uses: actions/setup-python@v4
35+
with:
36+
python-version: "3.x"
37+
- name: Install dependencies
38+
run: |
39+
python -m pip install --upgrade pip
40+
python -m pip install black
41+
- name: Check
42+
run: python -m black -v --check src
4343

4444
flake8:
4545
runs-on: ubuntu-latest
4646
steps:
47-
- uses: actions/checkout@v3
48-
- name: Set up Python
49-
uses: actions/setup-python@v4
50-
with:
51-
python-version: "3.x"
52-
- name: Install dependencies
53-
run: |
54-
python -m pip install --upgrade pip
55-
python -m pip install -e ".[dev]"
56-
- name: Check
57-
run: python -m pflake8 src
47+
- uses: actions/checkout@v3
48+
- name: Set up Python
49+
uses: actions/setup-python@v4
50+
with:
51+
python-version: "3.x"
52+
- name: Install dependencies
53+
run: |
54+
python -m pip install --upgrade pip
55+
python -m pip install pyproject-flake8
56+
- name: Check
57+
run: pflake8 -v src

src/latexify/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from latexify import _version
55

66
__version__ = _version.__version__
7-
except:
7+
except Exception:
88
__version__ = ""
99

1010
from latexify import frontend

0 commit comments

Comments
 (0)