Skip to content

Commit ed8fa05

Browse files
author
Jaime Céspedes Sisniega
authored
Merge pull request #318 from IFCA-Advanced-Computing/feature-update-ci
Update CI
2 parents 7f4defa + 289bf21 commit ed8fa05

File tree

122 files changed

+2096
-1784
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+2096
-1784
lines changed

.codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ ignore:
3232
- "*/tests/.*"
3333
- "setup.cfg"
3434
- "setup.py"
35-
- "pyproject.toml"
35+
- "pyproject.toml"

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ omit =
77
*/setup.py
88
*/__init__.py
99
*/frouros/setup.py
10-
*/frouros/tests/*
10+
*/frouros/tests/*

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ is merged. See https://github.com/blog/1506-closing-issues-via-pull-requests
1818
#### Any other comments?
1919

2020

21-
<!--Thanks for contributing!-->
21+
<!--Thanks for contributing!-->

.github/workflows/ci.yml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,21 @@ on:
66
- "*"
77

88
jobs:
9-
python-version:
10-
runs-on: ubuntu-22.04
9+
version:
10+
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
python-version: ['3.9',
14-
'3.10',
15-
'3.11',
16-
'3.12',]
13+
os: [
14+
ubuntu-22.04,
15+
windows-2022,
16+
macos-12,
17+
]
18+
python-version: [
19+
'3.9',
20+
'3.10',
21+
'3.11',
22+
'3.12',
23+
]
1724

1825
steps:
1926
- name: Checkout
@@ -29,11 +36,22 @@ jobs:
2936
python -m pip install --upgrade pip
3037
python -m pip install setuptools==68.2.2 tox==4.12.0 tox-gh-actions==3.2.0
3138
32-
- name: Optional - Install frouros (only used by linters)
33-
if: matrix.python-version == 3.9
39+
- name: Create virtual environment
3440
run: |
3541
python -m venv .venv
42+
43+
- name: Activate virtual environment (Windows)
44+
if: matrix.os == 'windows-2022'
45+
run: |
46+
.venv\Scripts\activate
47+
48+
- name: Activate virtual environment (Linux/macOS)
49+
if: matrix.os != 'windows-2022'
50+
run: |
3651
source .venv/bin/activate
52+
53+
- name: Install frouros
54+
run: |
3755
pip install "pytest>=7.4.4,<7.5"
3856
pip install -e .
3957

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ jobs:
1717
steps:
1818
- uses: readthedocs/actions/preview@v1
1919
with:
20-
project-slug: "frouros"
20+
project-slug: "frouros"

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,4 @@ docs/source/api_reference/*/auto_generated/
139139
docs/source/api_reference/*/*/auto_generated/
140140

141141
# Tests
142-
test-result.xml
142+
test-result.xml

.pre-commit-config.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
default_language_version:
2+
python: python3.9
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.5.0
6+
hooks:
7+
- id: check-added-large-files
8+
- id: check-docstring-first
9+
- id: check-merge-conflict
10+
- id: check-yaml
11+
- id: debug-statements
12+
- id: end-of-file-fixer
13+
- id: no-commit-to-branch
14+
args: ["--branch", "main"]
15+
- id: trailing-whitespace
16+
- repo: https://github.com/astral-sh/ruff-pre-commit
17+
rev: v0.3.4
18+
hooks:
19+
- id: ruff
20+
types_or: [
21+
python,
22+
pyi,
23+
jupyter,
24+
]
25+
args: [--fix]
26+
- id: ruff-format
27+
types_or: [
28+
python,
29+
pyi,
30+
jupyter,
31+
]
32+
- repo: https://github.com/pre-commit/mirrors-mypy
33+
rev: v1.9.0
34+
hooks:
35+
- id: mypy
36+
args: [
37+
--strict,
38+
--ignore-missing-imports,
39+
--disable-error-code=misc,
40+
--disable-error-code=no-any-return,
41+
]
42+
additional_dependencies: [
43+
types-requests<2.32,
44+
types-toml<0.11,
45+
types-tqdm<4.67,
46+
]

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ preferred-citation:
1515
orcid: "https://orcid.org/0000-0002-0013-4602"
1616
journal: "arXiv preprint arXiv:2208.06868"
1717
title: "Frouros: A Python library for drift detection in machine learning systems"
18-
year: 2022
18+
year: 2022

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# CODEOWNERS file
22

3-
* @jaime-cespedes-sisniega
3+
* @jaime-cespedes-sisniega

CONTRIBUTING.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,16 @@ Recommended steps for first time contributors:
2020
git pull
2121
pip install -e .
2222
```
23-
4. After adding and committing your fix or feature, ensure that code coverage is at least 90% (otherwise the PR will be rejected) and that linting is successfully executed using the following command:
23+
4. (Optional but recommended) Install pre-commit hooks:
24+
```bash
25+
pip install pre-commit
26+
pre-commit install
27+
```
28+
5. After adding and committing your fix or feature, ensure that code coverage is at least 90% (otherwise the PR will be rejected) and that linting is successfully executed using the following command:
2429
```bash
2530
tox
2631
```
27-
5. Create pull request to the original repository.
32+
6. Create a pull request to the original repository.
2833

2934
## Reporting a bug
3035

0 commit comments

Comments
 (0)