-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First attempt for Conda Actions workflow
- Loading branch information
1 parent
66e536d
commit c700ca1
Showing
2 changed files
with
39 additions
and
1 deletion.
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,38 @@ | ||
name: Dev CIF API CI/CD PIP | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: ["3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Linux dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install -y gdal-bin libgdal-dev | ||
- name: Install Packages | ||
run: | | ||
conda update -n base conda | ||
conda install --yes --file requirements.txt | ||
conda install gdal | ||
conda upgrade numpy | ||
- name: Run Tests | ||
env: | ||
GOOGLE_APPLICATION_USER: ${{ secrets.GOOGLE_APPLICATION_USER }} | ||
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | ||
run: | | ||
pytest tests |
2 changes: 1 addition & 1 deletion
2
.github/workflows/dev_ci_cd.yml → .github/workflows/dev_ci_cd_pip.yml
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Dev CIF API CI/CD | ||
name: Dev CIF API CI/CD PIP | ||
|
||
on: | ||
pull_request: | ||
|