Skip to content

Commit

Permalink
adding workflow new
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetanbrison committed Mar 22, 2023
1 parent de3f8fb commit 2d81d17
Show file tree
Hide file tree
Showing 4 changed files with 176 additions and 18 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/pytest_cp36.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: pytesting 3.6

on:
push:
branches-ignore:
- "main"
# # branches: [ main ]
schedule:
- cron: '0 0 1 * *'
# pull_request:
# branches:
# - '*'

jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [macos-latest, ubuntu-latest, windows-latest]
os: [ubuntu-latest]
python: ['3.6.x',]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python }}
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
################### Use this when you want to use local wheel installation through dist #################
# pip install -r requirements.txt
# - name: Lint with flake8
# run: |
# pip install flake8
# # stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# - name: Test with pytest
# run: |
# pip install pytest
# pytest -v --cov=structured-predictions --cov-report=html


# - name: Build and compile
# run: |
# make dist
# python setup.py develop

- name: Build and compile
run: |
# make clean
# pip install .
################## Use this when you want to use local wheel installation through dist ######################
# make dist
# pip install dist/*
#############################################################################
# python setup.py develop
# pip install -i https://test.pypi.org/simple/ structured-predictions==0.0.6
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple structured-predictions
# pip install -i https://test.pypi.org/simple/ structured-predictions
python tests/tests_DIOKR/Demo_DeepIOKR_bibtex.py
- name: Test with pytest
run: |
pip install pytest
pytest tests/tests_OK3/test_tree_clf_and_reg.py tests/tests_OK3/test_complementary.py tests/tests_IOKR tests/tests_DIOKR
# pytest tests/tests_IOKR
74 changes: 74 additions & 0 deletions .github/workflows/pytest_cp37.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: pytesting 3.7

on:
push:
# branches-ignore:
# - "main"
# # branches: [ main ]
schedule:
- cron: '0 0 1 * *'
# pull_request:
# branches:
# - '*'

jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ubuntu-latest, macos-latest]
os: [macos-latest, ubuntu-latest, windows-latest]
python: ['3.7',]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python }}
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
################### Use this when you want to use local wheel installation through dist #################
# pip install -r requirements.txt
# - name: Lint with flake8
# run: |
# pip install flake8
# # stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# - name: Test with pytest
# run: |
# pip install pytest
# pytest -v --cov=structured-predictions --cov-report=html


# - name: Build and compile
# run: |
# make dist
# python setup.py develop

- name: Build and compile
run: |
# make clean
# pip install .
################## Use this when you want to use local wheel installation through dist ######################
# make dist
# pip install dist/*
#############################################################################
# python setup.py develop
# pip install -i https://test.pypi.org/simple/ structured-predictions==0.0.6
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple structured-predictions
# pip install -i https://test.pypi.org/simple/ structured-predictions
# python tests/tests_DIOKR/Demo_DeepIOKR_bibtex.py
- name: Test with pytest
run: |
pip install pytest
pytest tests/tests_OK3/test_tree_clf_and_reg.py tests/tests_OK3/test_complementary.py
pytest tests/tests_DIOKR
python tests/tests_IOKR/ISOKR.py
# python tests/tests_IOKR/SISOKR.py
# pytest tests/tests_IOKR
26 changes: 16 additions & 10 deletions .github/workflows/pytest_cp38.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: pytesting
name: pytesting 3.8

on:
push:
branches-ignore:
- "main"
# branches-ignore:
# - "main"
# branches: [ main ]
schedule:
- cron: '0 0 1 * *'
Expand All @@ -16,7 +16,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [ubuntu-latest]
# os: [ubuntu-latest]
os: [macos-latest, ubuntu-latest, windows-latest]
python: ['3.8',]
env:
Expand All @@ -31,7 +31,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
################### Use this when you want to use local wheel installation through dist #################
# pip install -r requirements.txt
# - name: Lint with flake8
# run: |
# pip install flake8
Expand All @@ -54,15 +55,20 @@ jobs:
run: |
# make clean
# pip install .
make dist
################## Use this when you want to use local wheel installation through dist ######################
# make dist
# pip install dist/*
python setup.py develop
#############################################################################
# python setup.py develop
# pip install -i https://test.pypi.org/simple/ structured-predictions==0.0.6
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple structured-predictions
# pip install -i https://test.pypi.org/simple/ structured-predictions
python tests/tests_DIOKR/Demo_DeepIOKR_bibtex.py
# python tests/tests_DIOKR/Demo_DeepIOKR_bibtex.py
- name: Test with pytest
run: |
pip install pytest
pytest tests/tests_OK3/test_tree_clf_and_reg.py tests/tests_OK3/test_complementary.py
# pytest tests/tests_IOKR
pytest tests/tests_DIOKR
pytest tests/tests_DIOKR
python tests/tests_IOKR/ISOKR.py
# python tests/tests_IOKR/SISOKR.py
# pytest tests/tests_IOKR
23 changes: 15 additions & 8 deletions .github/workflows/pytest_cp39.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pytesting
name: pytesting 3.9

on:
push:
Expand All @@ -16,7 +16,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [ubuntu-latest]
# os: [macos-latest]
os: [macos-latest, ubuntu-latest, windows-latest]
python: ['3.9',]
env:
Expand All @@ -31,7 +31,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
################### Use this when you want to use local wheel installation through dist #################
# pip install -r requirements.txt
# - name: Lint with flake8
# run: |
# pip install flake8
Expand All @@ -54,14 +55,20 @@ jobs:
run: |
# make clean
# pip install .
make dist
pip install dist/*
################## Use this when you want to use local wheel installation through dist ######################
# make dist
# pip install dist/*
#############################################################################
# python setup.py develop
# pip install -i https://test.pypi.org/simple/ structured-predictions==0.0.6
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple structured-predictions
# pip install -i https://test.pypi.org/simple/ structured-predictions
python tests/tests_DIOKR/Demo_DeepIOKR_bibtex.py
# python tests/tests_DIOKR/Demo_DeepIOKR_bibtex.py
- name: Test with pytest
run: |
pip install pytest
pytest tests/tests_OK3/test_tree_clf_and_reg.py tests/tests_OK3/test_complementary.py tests/tests_DIOKR
# pytest tests/tests_IOKR tests/tests_DIOKR
pytest tests/tests_OK3/test_tree_clf_and_reg.py tests/tests_OK3/test_complementary.py
pytest tests/tests_DIOKR
python tests/tests_IOKR/ISOKR.py
# python tests/tests_IOKR/SISOKR.py
# pytest tests/tests_IOKR

0 comments on commit 2d81d17

Please sign in to comment.