-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #274 from michaelfeil/ci-nightly
add nightly and pypi pull
- Loading branch information
Showing
10 changed files
with
55 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ on: | |
type: boolean | ||
default: true | ||
|
||
|
||
env: | ||
POETRY_VERSION: "1.7.1" | ||
|
||
|
@@ -23,13 +24,14 @@ jobs: | |
strategy: | ||
# fail-fast: true | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, ] # macos-latest | ||
os: [ubuntu-latest, windows-latest] # macos-latest | ||
python-version: | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
coverage_tests: ["unit_test", "end_to_end"] | ||
source: ["local", "pypi"] | ||
exclude: | ||
# Exclude unit tests on macOS due to compatibility issues | ||
- python-version: "3.9" | ||
|
@@ -48,7 +50,7 @@ jobs: | |
|
||
|
||
runs-on: ${{ matrix.os }} | ||
name: Py${{ matrix.python-version }}-${{ matrix.os }}-${{ matrix.coverage_tests }} | ||
name: Py${{ matrix.python-version }}-${{ matrix.os }}-${{ matrix.coverage_tests }}-${{ matrix.source }} | ||
steps: | ||
- name: Free Disk Space | ||
uses: jlumbroso/[email protected] | ||
|
@@ -70,11 +72,20 @@ jobs: | |
python-version: ${{ matrix.python-version }} | ||
poetry-version: ${{ env.POETRY_VERSION }} | ||
working-directory: ${{ inputs.working-directory }} | ||
cache-key: infinity-emb-test-${{ matrix.coverage_tests }} | ||
cache-key: infinity-emb-test-${{ matrix.coverage_tests }}-${{ matrix.source }} | ||
|
||
- name: Install dependencies | ||
- name: Install dependencies from local | ||
# only if source is local | ||
if: matrix.source == 'local' | ||
shell: bash | ||
run: poetry install --extras all --with test | ||
|
||
- name: Install from PyPI | ||
# only if source is pypi | ||
if: matrix.source == 'pypi' | ||
run: | | ||
poetry install --only test | ||
poetry run pip install infinity-emb[all] --upgrade | ||
- name: Run Pytest Coverage | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters