Skip to content

Replaced mktemp with mkstemp (#1328) #20

Replaced mktemp with mkstemp (#1328)

Replaced mktemp with mkstemp (#1328) #20

Workflow file for this run

name: Tests
on:
push:
branches: master
pull_request:
branches: master
jobs:
build:
name: Build (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Check out source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup conda environment
uses: mamba-org/setup-micromamba@v1
with:
environment-name: parmed-dev
environment-file: devtools/environment-dev.yaml
create-args: >-
python=${{ matrix.python-version }}
- name: Optionally install AmberTools
if: ${{ matrix.python-version != 3.12 }}
shell: bash -l {0}
run: micromamba install "ambertools >=20.15" -c conda-forge -yq
- name: Install and test
shell: bash -l {0}
run: |
bash -ex devtools/ci/install.sh
- name: Upload Coverage Results
uses: codecov/codecov-action@v3
if: endsWith(github.ref, '/master')
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: test/
fail_ci_if_error: true