Skip to content

Commit ca9e1e8

Browse files
committed
Python 3.4 is only available on Ubuntu 18.04
1 parent e55cc24 commit ca9e1e8

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed

.github/workflows/build-18.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 - Python 3.4
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-18.04
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
python-version: ["3.4"]
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v5
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 coverage
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+
coverage run -m pytest
42+
- name: Coveralls
43+
env:
44+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
45+
run: |
46+
pip install coveralls
47+
coveralls

.github/workflows/build-20.04.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: CI Build - Python 3.4-3.7
4+
name: CI Build - Python 3.5-3.7
55

66
on:
77
push:
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python-version: ["3.4", "3.5", "3.6", "3.7"]
20+
python-version: ["3.5", "3.6", "3.7"]
2121

2222
steps:
2323
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)