Skip to content

Commit bfde721

Browse files
author
Matias Graña
committed
update python versions
1 parent 6df05c8 commit bfde721

File tree

1 file changed

+61
-61
lines changed

1 file changed

+61
-61
lines changed
Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
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-18.04
15-
strategy:
16-
matrix:
17-
python-version: ["3.4", "3.5", "3.6", "3.7", "3.8"]
18-
19-
steps:
20-
- uses: actions/checkout@v4
21-
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v4
23-
with:
24-
python-version: ${{ matrix.python-version }}
25-
- name: Install dependencies
26-
run: |
27-
python -m pip install --upgrade pip
28-
python -m pip install --prefer-binary --editable .[dev]
29-
python -m pip install --prefer-binary --editable .[fast]
30-
if [ $(python -c "import sys; print(sys.version[:3])") != 3.4 ]; then python -m pip install --prefer-binary --editable .[fast]; fi
31-
- name: Lint with flake8
32-
run: |
33-
flake8 orbit_predictor tests
34-
- name: Test with pytest
35-
run: |
36-
pytest -v --cov-report= --cov=orbit_predictor tests/
37-
38-
build_new_pys:
39-
runs-on: ubuntu-22.04
40-
strategy:
41-
matrix:
42-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
43-
44-
steps:
45-
- uses: actions/checkout@v4
46-
- name: Set up Python ${{ matrix.python-version }}
47-
uses: actions/setup-python@v4
48-
with:
49-
python-version: ${{ matrix.python-version }}
50-
- name: Install dependencies
51-
run: |
52-
python -m pip install --upgrade pip
53-
python -m pip install --prefer-binary --editable .[dev]
54-
python -m pip install --prefer-binary --editable .[fast]
55-
if [ $(python -c "import sys; print(sys.version[:3])") != 3.4 ]; then python -m pip install --prefer-binary --editable .[fast]; fi
56-
- name: Lint with flake8
57-
run: |
58-
flake8 orbit_predictor tests
59-
- name: Test with pytest
60-
run: |
61-
pytest -v --cov-report= --cov=orbit_predictor tests/
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-18.04
15+
strategy:
16+
matrix:
17+
python-version: ["3.4", "3.5", "3.6", "3.7", "3.8", "3.12", "3.13"]
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
python -m pip install --prefer-binary --editable .[dev]
29+
python -m pip install --prefer-binary --editable .[fast]
30+
if [ $(python -c "import sys; print(sys.version[:3])") != 3.4 ]; then python -m pip install --prefer-binary --editable .[fast]; fi
31+
- name: Lint with flake8
32+
run: |
33+
flake8 orbit_predictor tests
34+
- name: Test with pytest
35+
run: |
36+
pytest -v --cov-report= --cov=orbit_predictor tests/
37+
38+
build_22_04:
39+
runs-on: ubuntu-22.04
40+
strategy:
41+
matrix:
42+
python-version: ["3.9", "3.10", "3.11", "3.12"]
43+
44+
steps:
45+
- uses: actions/checkout@v4
46+
- name: Set up Python ${{ matrix.python-version }}
47+
uses: actions/setup-python@v4
48+
with:
49+
python-version: ${{ matrix.python-version }}
50+
- name: Install dependencies
51+
run: |
52+
python -m pip install --upgrade pip
53+
python -m pip install --prefer-binary --editable .[dev]
54+
python -m pip install --prefer-binary --editable .[fast]
55+
if [ $(python -c "import sys; print(sys.version[:3])") != 3.4 ]; then python -m pip install --prefer-binary --editable .[fast]; fi
56+
- name: Lint with flake8
57+
run: |
58+
flake8 orbit_predictor tests
59+
- name: Test with pytest
60+
run: |
61+
pytest -v --cov-report= --cov=orbit_predictor tests/

0 commit comments

Comments
 (0)