-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0895b0e
commit 70d7810
Showing
1 changed file
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Solve conda environment | ||
|
||
on: [push] | ||
|
||
jobs: | ||
check-conda: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Miniconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
|
||
- name: Install conda dependencies | ||
run: | | ||
$CONDA/bin/conda env update --file environment.yml --name base | ||
- name: Format with black | ||
run: | | ||
$CONDA/bin/black *.py | ||
$CONDA/bin/black */*.py | ||
- name: Check conda dependencies are compatible with the main program | ||
run: | | ||
$CONDA/bin/python --version |