Skip to content

Commit

Permalink
Update CI workflow to fix things
Browse files Browse the repository at this point in the history
  • Loading branch information
msbc committed Nov 29, 2024
1 parent 1e55fff commit 254bb4f
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
python-version: [3.8, 3.9, 3.10.15, 3.11, 3.12, 3.13]
python-version: [3.10.15]

steps:
- name: Checkout code
Expand All @@ -23,13 +23,15 @@ jobs:
- name: Install Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
python-version: ${{ matrix.python-version }}
auto-activate-base: false

- name: Create and activate environment
run: |
conda create -n test-env python=${{ matrix.python-version }} -y
source /usr/share/miniconda/etc/profile.d/conda.sh
conda init
source /root/.bashrc
conda activate test-env
pip install tox tox-conda
Expand All @@ -38,6 +40,13 @@ jobs:
sudo apt-get update
sudo apt-get install -y gcc gfortran
- name: Run Tox
run: tox
- name: Install dependencies
run: |
sudo apt-get install -y bc ninja-build
- name: Run Tox
run: |
conda init
source /root/.bashrc
conda activate test-env
tox -e py$(echo ${{ matrix.python-version }} | tr -d . | cut -c 1-3)

0 comments on commit 254bb4f

Please sign in to comment.