Skip to content

Commit

Permalink
another try at conda
Browse files Browse the repository at this point in the history
  • Loading branch information
aaschwanden committed Jan 14, 2025
1 parent ed77fff commit 683c41c
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,21 @@ on:
branches: [ "main" ]

jobs:
build:

runs-on: [ubuntu-latest]
strategy:
fail-fast: false
default-shell:
name: Default shell
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -el {0}
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
miniconda-version: "latest"
generate-run-shell: true
environment-file: environment-dev.yml
auto-activate-base: false
- name: Conda info
shell: bash -el {0}
run: conda info
- name: Run tests
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: anaconda-client-env
environment-file: environment-dev.yml
- run: conda info
- run: conda list
- run: conda config --show
run: |
python -c "import petsc4py; petsc4py.init(); from petsc4py import PETSc;"
python -m pytest

0 comments on commit 683c41c

Please sign in to comment.