Skip to content

Commit 53d427b

Browse files
Use micromamba not setup-python
1 parent 1a16424 commit 53d427b

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,29 @@ jobs:
2525
shell: bash -l {0}
2626
steps:
2727
- uses: actions/checkout@v4
28-
- uses: actions/setup-python@v5
28+
- name: "Setup ccache . . ."
29+
uses: Chocobo1/setup-ccache-action@v1
2930
with:
30-
python-version: ${{ matrix.python_version }}
31-
cache: "pip"
32-
- run: pip install -r requirements.txt
31+
update_packager_index: false
32+
install_ccache: true
3333
- name: "Create micromamba environment"
3434
uses: mamba-org/setup-micromamba@v1
3535
with:
3636
environment-name: libsemigroups
3737
create-args: >-
38+
python=${{ matrix.python_version }}
3839
libsemigroups
3940
- name: "Set environment variables . . ."
4041
run: |
4142
echo "PKG_CONFIG_PATH=$MAMBA_ROOT_PREFIX/envs/libsemigroups/lib/pkgconfig:$MAMBA_ROOT_PREFIX/envs/libsemigroups/share/pkgconfig:/usr/local/lib/pkgconfig" >> $GITHUB_ENV
4243
echo "LD_LIBRARY_PATH=$MAMBA_ROOT_PREFIX/envs/libsemigroups/lib:/usr/local/lib" >> $GITHUB_ENV
4344
echo "PATH=$MAMBA_ROOT_PREFIX/envs/libsemigroups/bin:$PATH" >> $GITHUB_ENV
44-
- name: "Setup ccache . . ."
45-
uses: Chocobo1/setup-ccache-action@v1
46-
with:
47-
update_packager_index: false
48-
install_ccache: true
4945
- name: "Python version . . ."
5046
run: |
5147
python --version
52-
pip3 --version
53-
- name: "Pip3 installing libsemigroups_pybind11 . . ."
48+
pip --version
49+
- run: pip install -r requirements.txt
50+
- name: "Pip installing libsemigroups_pybind11 . . ."
5451
run: |
5552
CXX="${{ matrix.compiler }}" pip3 install . -v
5653
- name: "python -m pytest -vv tests/test_*.py . . ."

0 commit comments

Comments
 (0)