Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
iamap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AMAP
iamap
Commits
4d723535
Commit
4d723535
authored
5 months ago
by
paul.tresson_ird.fr
Browse files
Options
Downloads
Patches
Plain Diff
switching back to simple conda, ditching windows testing for now
parent
5a4efccd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/jobs.yml
+8
-80
8 additions, 80 deletions
.github/workflows/jobs.yml
with
8 additions
and
80 deletions
.github/workflows/jobs.yml
+
8
−
80
View file @
4d723535
...
...
@@ -16,12 +16,11 @@ jobs:
fail-fast
:
false
max-parallel
:
6
matrix
:
## Windows automatic testing is not functionnig yet
os
:
[
ubuntu-latest
,
macos-latest
]
# os: [ubuntu-latest , macos-latest , windows-latest]
# python-minor-version: [11, 12]
# qgis-minor-version: [34, 36, 38]
os
:
[
windows-latest
]
python-minor-version
:
[
11
]
qgis-minor-version
:
[
38
]
python-minor-version
:
[
11
,
12
]
qgis-minor-version
:
[
34
,
36
,
38
]
steps
:
-
name
:
Checkout
...
...
@@ -33,86 +32,15 @@ jobs:
python-version
:
3.${{ matrix.python-minor-version }}
channels
:
conda-forge
auto-update-conda
:
true
-
name
:
Set Python Encoding for Windows
if
:
matrix.os == 'windows-latest'
run
:
|
set PYTHONIOENCODING=utf-8
set PYTHONLEGACYWINDOWSSTDIO=utf-8
-
name
:
Install Mamba in Base Environment
run
:
conda install -n test -c conda-forge mamba --yes
-
name
:
Set up Environment and Install Dependencies
run
:
|
mamb
a create -n pytest python=3.${{ matrix.python-minor-version }} qgis=3.${{ matrix.qgis-minor-version }} --yes
mamb
a install -n pytest --file requirements.txt --yes
mamb
a install -n pytest pytest --yes
cond
a create -n pytest python=3.${{ matrix.python-minor-version }} qgis=3.${{ matrix.qgis-minor-version }} --yes
cond
a install -n pytest --file requirements.txt --yes
cond
a install -n pytest pytest --yes
shell
:
bash -el {0}
-
name
:
Run Tests
run
:
|
conda run -n pytest pytest
conda run -n pytest pytest
tests/
shell
:
bash -el {0}
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Set up Miniconda
# uses: conda-incubator/setup-miniconda@v3
# with:
# python-version: 3.${{matrix.python-minor-version}}
# channels: conda-forge
# - name: Install Mamba
# run: |
# conda init
# conda install -n test -c conda-forge mamba
# - name: Init Mamba shell
# if: matrix.os == 'windows-latest'
# run: |
# eval "$(mamba.exe shell hook --shell powershell)"
# mamba shell init --shell powershell
# mamba shell reinit --shell powershell
# shell: bash -el {0}
# - name: Set up Environment and Install Dependencies
# run: |
# conda activate test
# mamba create -n pytest python=3.${{matrix.python-minor-version}} qgis=3.${{matrix.qgis-minor-version}} --yes
# mamba activate pytest
# mamba install --file requirements.txt --yes
# mamba install pytest --yes
# shell: bash -el {0}
# - name: Set up Conda
# # uses: conda-incubator/setup-miniconda@v3
# uses: mamba-org/setup-micromamba@v1
# # with:
# # python-version: 3.${{matrix.python-minor-version}}
# # channels: conda-forge
# - run: |
# mamba init
# mamba activate test
# # conda install qgis=3.${{matrix.qgis-minor-version}}
# mamba install qgis=3.${{matrix.qgis-minor-version}}
# mamba install --file requirements.txt
# mamba install pytest
# shell: bash -el {0}
# - name: Check Path in windows
# if: matrix.os == 'windows-latest'
# run: |
# conda activate test
# $conda_env_path = (Split-Path -Path (Split-Path -Path (Get-Command python).Path))
# # Update PATH to include the "Library\bin" directory for the conda environment
# Add-Content -Path $Env:GITHUB_ENV -Value "PATH=$conda_env_path\Library\bin;$Env:PATH"
# shell: powershell
# - name: Tests
# run: |
# mamba activate test
# pytest tests/
# shell: bash -el {0}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment