Skip to content

Commit ae42c54

Browse files
authored
Merge pull request #63 from tcalmant/ci-update
CI configuration update
2 parents 6b5542a + 31f4ed6 commit ae42c54

File tree

3 files changed

+54
-6
lines changed

3 files changed

+54
-6
lines changed

.github/workflows/build.yml renamed to .github/workflows/build-20.04.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@ name: CI Build
55

66
on:
77
push:
8-
branches: '**'
8+
branches: [ "master" ]
99
tags: '**'
1010
pull_request:
11-
branches: '**'
11+
branches: [ "master" ]
1212

1313
jobs:
1414
build:
1515
timeout-minutes: 10
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-20.04
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
20+
python-version: ["3.6", "3.7"]
2121

2222
steps:
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4.2.2
2424
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v2
25+
uses: actions/setup-python@v5.4.0
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828
- name: Install dependencies

.github/workflows/build-24.04.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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: CI Build
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
tags: '**'
10+
pull_request:
11+
branches: [ "master" ]
12+
13+
jobs:
14+
build:
15+
timeout-minutes: 10
16+
runs-on: ubuntu-24.04
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14-dev"]
21+
22+
steps:
23+
- uses: actions/[email protected]
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/[email protected]
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
python -m pip install flake8 pytest
32+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
33+
- name: Lint with flake8
34+
run: |
35+
# stop the build if there are Python syntax errors or undefined names
36+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
37+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
38+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
39+
- name: Test
40+
run: |
41+
./run_tests.sh
42+
- name: Coveralls
43+
env:
44+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
45+
run: |
46+
pip install coveralls
47+
coveralls

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,6 @@
7474
"Programming Language :: Python :: 3.10",
7575
"Programming Language :: Python :: 3.11",
7676
"Programming Language :: Python :: 3.12",
77+
"Programming Language :: Python :: 3.13",
7778
],
7879
)

0 commit comments

Comments
 (0)