Skip to content

Commit ca69a20

Browse files
authored
Merge pull request #66 from not522/update-ci
Update versions in CI
2 parents 58f324e + 215d053 commit ca69a20

File tree

4 files changed

+48
-8
lines changed

4 files changed

+48
-8
lines changed

.github/workflows/benchmarks.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
13-
- name: Set up Python 3.9
14-
uses: actions/setup-python@v2
12+
- uses: actions/checkout@v4
13+
- name: Set up Python 3.13
14+
uses: actions/setup-python@v5
1515
with:
16-
python-version: 3.9
16+
python-version: 3.13
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip
+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Python package
5+
6+
on:
7+
push:
8+
branches: [master]
9+
pull_request:
10+
branches: [master]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-20.04
15+
strategy:
16+
matrix:
17+
python-version: ['3.6']
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install .[lint,test]
29+
- name: Lint with flake8
30+
run: |
31+
# stop the build if there are Python syntax errors or undefined names
32+
flake8 atcoder tests --count --select=E9,F63,F7,F82 --show-source --statistics
33+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
34+
flake8 atcoder tests --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
35+
- name: Type check with mypy
36+
run: |
37+
mypy atcoder tests
38+
- name: Test with pytest
39+
run: |
40+
pytest

.github/workflows/python-package.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: [3.6, 3.7, 3.8]
17+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v2
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ matrix.python-version }}
2525
- name: Install dependencies

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ packages = find:
1010
[options.extras_require]
1111
lint =
1212
flake8
13-
pep8-naming
13+
pep8-naming; python_version>="3.8"
1414
mypy
1515
test =
1616
pytest

0 commit comments

Comments
 (0)