-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first try use mamba instead of conda
- Loading branch information
1 parent
0c1aa65
commit ce29d01
Showing
13 changed files
with
98 additions
and
94 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,13 +14,13 @@ jobs: | |
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Conda | ||
uses: ./.github/actions/conda | ||
- name: Setup mamba | ||
uses: ./.github/actions/mamba | ||
|
||
- name: Flake8 | ||
run: | | ||
conda run -n modyn flake8 --version | ||
conda run -n modyn flake8 modyn --statistics | ||
mamba run -n modyn flake8 --version | ||
mamba run -n modyn flake8 modyn --statistics | ||
mypy-typechecking: | ||
timeout-minutes: 20 | ||
|
@@ -30,13 +30,13 @@ jobs: | |
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Conda | ||
uses: ./.github/actions/conda | ||
- name: Setup mamba | ||
uses: ./.github/actions/mamba | ||
|
||
- name: Mypy | ||
run: | | ||
conda run -n modyn mypy --version | ||
conda run -n modyn mypy modyn | ||
mamba run -n modyn mypy --version | ||
mamba run -n modyn mypy modyn | ||
pylint: | ||
timeout-minutes: 20 | ||
|
@@ -46,13 +46,13 @@ jobs: | |
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Conda | ||
uses: ./.github/actions/conda | ||
- name: Setup mamba | ||
uses: ./.github/actions/mamba | ||
|
||
- name: Pylint | ||
run: | | ||
conda run -n modyn pylint --version | ||
conda run -n modyn pylint modyn | ||
mamba run -n modyn pylint --version | ||
mamba run -n modyn pylint modyn | ||
isort: | ||
timeout-minutes: 20 | ||
|
@@ -62,15 +62,15 @@ jobs: | |
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Conda | ||
uses: ./.github/actions/conda | ||
- name: Setup mamba | ||
uses: ./.github/actions/mamba | ||
|
||
- name: Isort | ||
run: | | ||
conda run -n modyn isort --version | ||
conda run -n modyn isort modyn --check --diff | ||
conda run -n modyn isort integrationtests --check --diff | ||
conda run -n modyn isort benchmark --check --diff | ||
mamba run -n modyn isort --version | ||
mamba run -n modyn isort modyn --check --diff | ||
mamba run -n modyn isort integrationtests --check --diff | ||
mamba run -n modyn isort benchmark --check --diff | ||
black: | ||
timeout-minutes: 20 | ||
|
@@ -80,13 +80,13 @@ jobs: | |
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Conda | ||
uses: ./.github/actions/conda | ||
- name: Setup mamba | ||
uses: ./.github/actions/mamba | ||
|
||
- name: Black | ||
run: | | ||
conda run -n modyn black --version | ||
conda run -n modyn black --check modyn --verbose --config black.toml | ||
mamba run -n modyn black --version | ||
mamba run -n modyn black --check modyn --verbose --config black.toml | ||
unittests: | ||
timeout-minutes: 20 | ||
|
@@ -96,13 +96,13 @@ jobs: | |
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Conda | ||
uses: ./.github/actions/conda | ||
- name: Setup mamba | ||
uses: ./.github/actions/mamba | ||
|
||
- name: Pytest | ||
run: | | ||
conda run -n modyn pytest modyn --cov-reset --cache-clear --cov-fail-under=90 | ||
conda run -n modyn pytest > pytest-coverage.txt | ||
mamba run -n modyn pytest modyn --cov-reset --cache-clear --cov-fail-under=90 | ||
mamba run -n modyn pytest > pytest-coverage.txt | ||
- name: Comment coverage | ||
uses: coroo/[email protected] | ||
|
@@ -130,7 +130,7 @@ jobs: | |
uses: ./.github/actions/base | ||
|
||
- name: Setup dev-requirements and run pytest within container | ||
run: docker run modynbase conda run -n modyn bash -c "pip install -r dev-requirements.txt && echo Running pytest && pytest" | ||
run: docker run modynbase mamba run -n modyn bash -c "pip install -r dev-requirements.txt && echo Running pytest && pytest" | ||
|
||
|
||
# Tests whether docker-compose up starts all components successfully and integration tests run through | ||
|
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
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