Skip to content

Commit b83115a

Browse files
committed
drop Python 3.10 support because it's EOL, fix CI environments
Signed-off-by: Lance-Drane <Lance-Drane@users.noreply.github.com>
1 parent 28b6af4 commit b83115a

2 files changed

Lines changed: 199 additions & 213 deletions

File tree

‎.github/workflows/workflows.yml‎

Lines changed: 75 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,37 @@ name: CI
33
on: [push, pull_request, workflow_dispatch]
44

55
jobs:
6-
76
static_analysis:
8-
97
runs-on: ubuntu-latest
108

119
defaults:
1210
run:
1311
shell: bash -l {0}
1412

1513
steps:
16-
- uses: actions/checkout@v3
17-
- uses: conda-incubator/setup-miniconda@v3
18-
with:
19-
miniforge-variant: Miniforge3
20-
miniforge-version: latest
21-
channels: conda-forge
22-
channel-priority: true
23-
auto-update-conda: true
24-
environment-file: .github/workflows/conda_env/environment_static_analysis.yml
25-
#- name: flake8
14+
- uses: actions/checkout@v3
15+
- uses: conda-incubator/setup-miniconda@v3
16+
with:
17+
miniforge-variant: Miniforge3
18+
miniforge-version: latest
19+
channels: conda-forge
20+
channel-priority: true
21+
auto-update-conda: true
22+
environment-file: .github/workflows/conda_env/environment_static_analysis.yml
23+
#- name: flake8
2624
#run: flake8
27-
#- name: pylint
25+
#- name: pylint
2826
#run: pylint ipsframework tests
29-
#- name: bandit
27+
#- name: bandit
3028
#run: bandit -lll ipsframework/*.py
31-
- name: ruff-lint
32-
run: ruff check
33-
- name: ruff-format
34-
run: ruff format --check
35-
- name: codespell
36-
run: codespell || true
29+
- name: ruff-lint
30+
run: ruff check
31+
- name: ruff-format
32+
run: ruff format --check
33+
- name: codespell
34+
run: codespell || true
3735

3836
tests:
39-
4037
runs-on: ${{ matrix.os }}
4138

4239
defaults:
@@ -47,81 +44,73 @@ jobs:
4744
fail-fast: false
4845
matrix:
4946
include:
50-
#- os: ubuntu-latest
51-
#python-version: 3.6
52-
#conda_env: 'minimal'
53-
#- os: ubuntu-latest
54-
#python-version: 3.7
55-
#conda_env: 'dask_2.5.2'
56-
#- os: ubuntu-latest
57-
#python-version: 3.8
58-
#conda_env: 'dask_2.30.0'
5947
- os: ubuntu-latest
60-
python-version: 3.9
61-
conda_env: 'dask_2022.7.0'
48+
python-version: "3.11"
49+
conda_env: "minimal"
50+
- os: ubuntu-latest
51+
python-version: "3.12"
52+
conda_env: "minimal"
6253
- os: ubuntu-latest
63-
python-version: "3.10"
64-
conda_env: 'linux'
54+
python-version: "3.13"
55+
conda_env: "minimal"
6556
- os: ubuntu-latest
66-
python-version: "3.11"
67-
conda_env: 'minimal'
57+
python-version: "3.14"
58+
conda_env: "minimal"
6859
- os: macos-latest
69-
python-version: 3.9
70-
conda_env: 'macos'
60+
python-version: "3.12"
61+
conda_env: "macos"
7162

7263
steps:
73-
- uses: actions/checkout@v3
74-
- uses: conda-incubator/setup-miniconda@v3
75-
with:
76-
miniforge-variant: Miniforge3
77-
miniforge-version: latest
78-
channels: conda-forge
79-
channel-priority: true
80-
auto-update-conda: true
81-
python-version: ${{ matrix.python-version }}
82-
environment-file: .github/workflows/conda_env/environment_${{ matrix.conda_env }}.yml
83-
- name: Install IPS (in develop mode)
84-
run: python -m pip install -e .
85-
- name: testing running IPS (--help)
86-
run: ips.py --help
87-
- name: testing showing IPS version (--version)
88-
run: ips.py --version
89-
- name: Test with pytest
90-
run: python -m pytest --cov --cov-report=xml --cov-report=term --timeout=60
91-
# TODO: remove when tests are fixed
92-
continue-on-error: true
93-
- name: Upload coverage to Codecov
94-
uses: codecov/codecov-action@v3
95-
if: ${{ github.ref == 'refs/heads/main' }}
64+
- uses: actions/checkout@v3
65+
- uses: conda-incubator/setup-miniconda@v3
66+
with:
67+
miniforge-variant: Miniforge3
68+
miniforge-version: latest
69+
channels: conda-forge
70+
channel-priority: true
71+
auto-update-conda: true
72+
python-version: ${{ matrix.python-version }}
73+
environment-file: .github/workflows/conda_env/environment_${{ matrix.conda_env }}.yml
74+
- name: Install IPS (in develop mode)
75+
run: python -m pip install -e .
76+
- name: testing running IPS (--help)
77+
run: ips.py --help
78+
- name: testing showing IPS version (--version)
79+
run: ips.py --version
80+
- name: Test with pytest
81+
run: python -m pytest --cov --cov-report=xml --cov-report=term --timeout=60
82+
# TODO: remove when tests are fixed
83+
continue-on-error: true
84+
- name: Upload coverage to Codecov
85+
uses: codecov/codecov-action@v3
86+
if: ${{ github.ref == 'refs/heads/main' }}
9687

9788
tests-wsl:
98-
9989
runs-on: windows-latest
10090

10191
defaults:
102-
run:
103-
shell: wsl-bash {0}
92+
run:
93+
shell: wsl-bash {0}
10494

10595
steps:
106-
- uses: actions/checkout@v3
107-
- run: wsl --set-default-version 1
108-
shell: cmd
109-
- uses: Vampire/setup-wsl@v1
110-
with:
111-
additional-packages:
112-
python-is-python3
113-
python3-pip
114-
python3-pytest-cov
115-
python3-pytest-timeout
116-
python3-psutil
117-
python3-flask
118-
- name: Install IPS (in develop mode)
119-
run: python -m pip install -e .
120-
- name: testing running IPS (--help)
121-
run: ips.py --help
122-
- name: testing showing IPS version (--version)
123-
run: ips.py --version
124-
- name: Test with pytest
125-
run: python -m pytest --cov --timeout=60
126-
# TODO: remove when tests are fixed
127-
continue-on-error: true
96+
- uses: actions/checkout@v3
97+
- run: wsl --set-default-version 1
98+
shell: cmd
99+
- uses: Vampire/setup-wsl@v1
100+
with:
101+
additional-packages: python-is-python3
102+
python3-pip
103+
python3-pytest-cov
104+
python3-pytest-timeout
105+
python3-psutil
106+
python3-flask
107+
- name: Install IPS (in develop mode)
108+
run: python -m pip install -e .
109+
- name: testing running IPS (--help)
110+
run: ips.py --help
111+
- name: testing showing IPS version (--version)
112+
run: ips.py --version
113+
- name: Test with pytest
114+
run: python -m pytest --cov --timeout=60
115+
# TODO: remove when tests are fixed
116+
continue-on-error: true

0 commit comments

Comments
 (0)