Skip to content

Commit 57adeee

Browse files
authored
Use pip (#116)
* Use pip * Use pip also when building the documentation
1 parent 5458441 commit 57adeee

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/CI.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ jobs:
2929
coverage: true
3030
steps:
3131
- uses: actions/checkout@v2
32+
- name: Install python
33+
uses: actions/setup-python@v2
34+
with:
35+
python-version: '3.x'
36+
architecture: ${{ matrix.arch }}
37+
# Limitation of pip: https://pythonot.github.io/index.html#pip-installation
38+
- run: python -m pip install cython numpy
39+
- run: python -m pip install pot
3240
- uses: julia-actions/setup-julia@v1
3341
with:
3442
version: ${{ matrix.version }}
@@ -48,7 +56,7 @@ jobs:
4856
with:
4957
coverage: ${{ matrix.coverage || false }}
5058
env:
51-
PYTHON: '' # Use Conda.jl also on Linux
59+
PYTHON: python
5260
GROUP: OptimalTransport
5361
- uses: julia-actions/julia-processcoverage@v1
5462
if: matrix.coverage

.github/workflows/Documentation.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v2
15+
- name: Install python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: '3.x'
19+
architecture: ${{ matrix.arch }}
20+
# Limitation of pip: https://pythonot.github.io/index.html#pip-installation
21+
- run: python -m pip install cython numpy
22+
- run: python -m pip install pot
1523
- uses: julia-actions/setup-julia@latest
1624
with:
1725
version: '1'
@@ -24,6 +32,5 @@ jobs:
2432
env:
2533
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
2634
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
27-
PYTHON: '' # Use Conda.jl also on Linux
2835
GKSwstype: nul # avoid (irrelevant) error messages from GR
2936
shell: julia --color=yes --project=docs/ {0}

0 commit comments

Comments
 (0)