From cf868254a1846966b6a0e9ecf1da63eebae7279a Mon Sep 17 00:00:00 2001 From: felipez Date: Fri, 30 Oct 2020 11:32:01 +0100 Subject: [PATCH] create gh actions recipes #58 --- .github/ISSUE_TEMPLATE/00_bug_report.md | 13 +++++++ .github/ISSUE_TEMPLATE/10_feature_request.md | 10 +++++ .github/ISSUE_TEMPLATE/20_help_request.md | 8 ++++ .github/workflows/build.yml | 40 ++++++++++++++++++++ .gitignore | 5 ++- 5 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 .github/ISSUE_TEMPLATE/00_bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/10_feature_request.md create mode 100644 .github/ISSUE_TEMPLATE/20_help_request.md create mode 100644 .github/workflows/build.yml diff --git a/.github/ISSUE_TEMPLATE/00_bug_report.md b/.github/ISSUE_TEMPLATE/00_bug_report.md new file mode 100644 index 00000000..0094c5cd --- /dev/null +++ b/.github/ISSUE_TEMPLATE/00_bug_report.md @@ -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 diff --git a/.github/ISSUE_TEMPLATE/10_feature_request.md b/.github/ISSUE_TEMPLATE/10_feature_request.md new file mode 100644 index 00000000..293e9a09 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/10_feature_request.md @@ -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! diff --git a/.github/ISSUE_TEMPLATE/20_help_request.md b/.github/ISSUE_TEMPLATE/20_help_request.md new file mode 100644 index 00000000..b5d62168 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/20_help_request.md @@ -0,0 +1,8 @@ +--- +name: Help wanted +about: I need some help with the code +title: '' +labels: help wanted +assignees: '' + +--- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..7aa31d40 --- /dev/null +++ b/.github/workflows/build.yml @@ -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/cancel-workflow-action@0.4.0 + 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 diff --git a/.gitignore b/.gitignore index 6706833a..c20711ea 100644 --- a/.gitignore +++ b/.gitignore @@ -30,4 +30,7 @@ docs/apidocs *.pth* # runs dir -runs/* \ No newline at end of file +runs/* + +# emacs +*~ \ No newline at end of file