Skip to content

Commit

Permalink
Merge pull request #610 from jhdark/conda_fix
Browse files Browse the repository at this point in the history
Fix conda workflow, new badges
  • Loading branch information
RemDelaporteMathurin authored Oct 18, 2023
2 parents 2ce0c38 + 43d5c18 commit 05cf778
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 61 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/ci.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/ci_conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Conda CI
on: [pull_request, push]

jobs:
run-tests:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: myenv
miniforge-version: latest
use-mamba: true
channels: conda-forge

- name: Create Conda environment
shell: bash -l {0}
run: |
mamba install -c conda-forge fenics-dolfinx
- name: Install local package and dependencies
shell: bash -l {0}
run: |
pip install .[test]
- name: Run tests
shell: bash -l {0}
run: |
pytest test/ --cov festim --cov-report xml --cov-report term
- name: Upload to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
24 changes: 24 additions & 0 deletions .github/workflows/ci_docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Docker CI
on: [pull_request, push]

jobs:
run-tests:
runs-on: ubuntu-latest
container: dolfinx/dolfinx:stable
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install local package and dependencies
run: |
pip install .[test]
- name: Run tests
run: |
python3 -m pytest test/ --cov festim --cov-report xml --cov-report term
- name: Upload to codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FESTIM

[![CircleCI](https://dl.circleci.com/status-badge/img/gh/RemDelaporteMathurin/FESTIM/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/RemDelaporteMathurin/FESTIM/tree/main)
[![Conda CI](https://github.com/RemDelaporteMathurin/FESTIM/actions/workflows/ci_conda.yml/badge.svg?branch=fenicsx)](https://github.com/RemDelaporteMathurin/FESTIM/actions/workflows/ci_conda.yml)
[![Docker CI](https://github.com/RemDelaporteMathurin/FESTIM/actions/workflows/ci_docker.yml/badge.svg?branch=fenicsx)](https://github.com/RemDelaporteMathurin/FESTIM/actions/workflows/ci_docker.yml)
[![codecov](https://codecov.io/gh/RemDelaporteMathurin/FESTIM/branch/master/graph/badge.svg?token=AK3A9CV2D3)](https://codecov.io/gh/RemDelaporteMathurin/FESTIM)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square)](https://github.com/psf/black)
![GitHub stars](https://img.shields.io/github/stars/RemDelaporteMathurin/FESTIM.svg?logo=github&label=Stars&logoColor=white)
Expand Down

0 comments on commit 05cf778

Please sign in to comment.