Skip to content

Commit 57338a1

Browse files
committed
ci update
1 parent e8d787e commit 57338a1

File tree

2 files changed

+14
-31
lines changed

2 files changed

+14
-31
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,26 @@
11
name: build
2-
on:
3-
pull_request:
4-
push:
5-
branches: [main]
2+
on: [push]
3+
64
jobs:
7-
lint:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v2
11-
- name: Set up Python
12-
uses: actions/setup-python@v2
13-
with:
14-
python-version: '3.x'
15-
- name: Display Python version
16-
run: python -c "import sys; print(sys.version)"
17-
- name: Install tox
18-
run: pip install --upgrade tox black
19-
- name: Run tox flake8
20-
run: tox -e flake8
21-
- name: Run tox black
22-
run: tox -e black
23-
test:
24-
needs: lint
5+
build:
6+
257
runs-on: ubuntu-latest
268
strategy:
279
matrix:
28-
python-version: [3.7, 3.8, 3.9]
10+
python-version: ["3.10", "3.11", "3.12"]
11+
2912
steps:
30-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
3114
- name: Set up Python ${{ matrix.python-version }}
32-
uses: actions/setup-python@v2
15+
uses: actions/setup-python@v5
3316
with:
3417
python-version: ${{ matrix.python-version }}
3518
- name: Display Python version
3619
run: python -c "import sys; print(sys.version)"
37-
- name: install tox
38-
run: python -m pip install --upgrade tox virtualenv setuptools pip
39-
- name: run tox tests
40-
run: tox -e py
20+
- name: Install dependencies
21+
run: python -m pip install --upgrade pre-commit tox virtualenv setuptools pip
22+
- name: run tox
23+
run: tox
4124
- name: Upload coverage to Codecov
4225
uses: codecov/codecov-action@v1
4326
with:

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jobs:
66
deploy:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
9+
- uses: actions/checkout@v4
1010
- name: Set up Python
11-
uses: actions/setup-python@v2
11+
uses: actions/setup-python@v5
1212
with:
1313
python-version: '3.x'
1414
- name: Install dependencies

0 commit comments

Comments
 (0)