Skip to content

Commit

Permalink
Merge pull request #44 from fusion-energy/github_actions
Browse files Browse the repository at this point in the history
moved to GitHub actions for CI
  • Loading branch information
shimwell committed Apr 21, 2024
2 parents 72fdcdd + 4b76789 commit 3611ec6
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 39 deletions.
39 changes: 0 additions & 39 deletions .circleci/config.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/ci_with_install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI testing

on:
pull_request:
# branches:
# - main
push:
# branches:
# - main

jobs:
testing:
name: CI (Python=${{ matrix.python-version }}, OS=${{ matrix.os }})
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.10"]

steps:
- name: checkout actions
uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge

- name: install dependencies
run: conda install -c conda-forge openmc -y

- name: install package
run: |
python -m pip install --upgrade pip
python -m pip install .
python -c 'import neutronics_material_maker'
python -m pip install .[density,tests]
- name: run pytest
run: python -m pytest -v tests

0 comments on commit 3611ec6

Please sign in to comment.