Skip to content

Commit

Permalink
create gh actions recipes #58
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeZ committed Oct 30, 2020
1 parent 6f59c2d commit cf86825
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/00_bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Bug report
about: Something doesn't work like I expected.
title: ''
labels: bug
assignees: ''

---

Use your best judgment to provide a useful level of information. Depending on the nature of the issue, consider including, e.g.

- Which version of the software you're running
- Any logging or error output you see
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/10_feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Feature request
about: I would like a new feature to be included in the library
title: ''
labels: enhancement
assignees: ''

---

Tell us what would be a nice feature to make the **QMCTorch** library even better!
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/20_help_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: Help wanted
about: I need some help with the code
title: ''
labels: help wanted
assignees: ''

---
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build

on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
version: [3.7, 3.8]

steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: ${{ matrix.version }}
conda-channels: anaconda
- run: conda --version
- run: which python
- run: conda install h5py pytorch torchvision cpuonly -c pytorch -c conda-forge

- name: Install the package
run: pip install .[test] -v
env:
CONDA_PREFIX: /usr/share/miniconda

- name: Test with pytest
env:
CONDA_PREFIX: /usr/share/miniconda
run: |
pytest --cov-config setup.cfg
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ docs/apidocs
*.pth*

# runs dir
runs/*
runs/*

# emacs
*~

0 comments on commit cf86825

Please sign in to comment.