Skip to content

Commit 5d9736f

Browse files
committed
updated actions to run 3.10-3.12
1 parent 7e3bdaa commit 5d9736f

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,47 +13,47 @@ jobs:
1313
runs-on: ubuntu-latest
1414
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
1515
steps:
16-
- uses: actions/checkout@v4
17-
- name: Set up Python 3.10
18-
uses: actions/setup-python@v5
19-
with:
20-
python-version: "3.10"
21-
- name: Install dependencies
22-
run: |
23-
python -m pip install --upgrade pip
24-
python -m pip install black flake8
25-
- name: Code Style (Black/Flake8)
26-
run: |
27-
black --check --diff pytorch_widedeep tests examples setup.py
28-
flake8 . --count --select=E901,E999,F821,F822,F823 --ignore=E266 --show-source --statistics
29-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --ignore=E203,E266,E501,E721,E722,F401,F403,F405,F811,W503,C901 --statistics
16+
- uses: actions/checkout@v4
17+
- name: Set up Python 3.11
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.11"
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
python -m pip install black flake8
25+
- name: Code Style (Black/Flake8)
26+
run: |
27+
black --check --diff pytorch_widedeep tests examples setup.py
28+
flake8 . --count --select=E901,E999,F821,F822,F823 --ignore=E266 --show-source --statistics
29+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --ignore=E203,E266,E501,E721,E722,F401,F403,F405,F811,W503,C901 --statistics
3030
3131
test:
3232
runs-on: ubuntu-latest
3333
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
3434
strategy:
3535
fail-fast: true
3636
matrix:
37-
python-version: ["3.9", "3.10", "3.11"]
37+
python-version: ["3.10", "3.11", "3.12"]
3838
steps:
39-
- uses: actions/checkout@v4
40-
- name: Set up Python ${{ matrix.python-version }}
41-
uses: actions/setup-python@v5
42-
with:
43-
python-version: ${{ matrix.python-version }}
44-
- name: Install dependencies
45-
run: |
46-
python -m pip install --upgrade pip
47-
python -m pip install pytest pytest-cov codecov faker
48-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
49-
- name: Test with pytest and generate coverage
50-
run: |
51-
pytest --doctest-modules pytorch_widedeep --cov=pytorch_widedeep --cov-report=xml --cov-report=term --disable-pytest-warnings tests
52-
- name: Upload coverage to Codecov
53-
uses: codecov/codecov-action@v4
54-
with:
55-
token: ${{ secrets.CODECOV_TOKEN }}
56-
file: ./coverage.xml
57-
flags: unittests
58-
name: codecov-${{ matrix.python-version }}
59-
fail_ci_if_error: true
39+
- uses: actions/checkout@v4
40+
- name: Set up Python ${{ matrix.python-version }}
41+
uses: actions/setup-python@v5
42+
with:
43+
python-version: ${{ matrix.python-version }}
44+
- name: Install dependencies
45+
run: |
46+
python -m pip install --upgrade pip
47+
python -m pip install pytest pytest-cov codecov faker
48+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
49+
- name: Test with pytest and generate coverage
50+
run: |
51+
pytest --doctest-modules pytorch_widedeep --cov=pytorch_widedeep --cov-report=xml --cov-report=term --disable-pytest-warnings tests
52+
- name: Upload coverage to Codecov
53+
uses: codecov/codecov-action@v4
54+
with:
55+
token: ${{ secrets.CODECOV_TOKEN }}
56+
file: ./coverage.xml
57+
flags: unittests
58+
name: codecov-${{ matrix.python-version }}
59+
fail_ci_if_error: true

0 commit comments

Comments
 (0)