Skip to content

Commit

Permalink
Linux only
Browse files Browse the repository at this point in the history
  • Loading branch information
bocklund committed Nov 20, 2020
1 parent ea7d365 commit e1d3370
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 4 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pytest-Linux.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: pycalphad tests on Linux

on: [push]

jobs:
Tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 9
matrix:
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # fetch the entire repo history, required to guarantee versioneer will pick up the tags
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
$CONDA/bin/conda env update --file environment.yml --name base
- name: Install pycalphad development version
run: |
$CONDA/bin/pip install --no-deps -e .
- name: Test with pytest
run: |
# coverage<5, see https://github.com/coveralls-clients/coveralls-python/issues/213
$CONDA/bin/conda install pytest pytest-cov coveralls "coverage<5"
$CONDA/bin/conda list
$CONDA/bin/pytest -v --cov=pycalphad
9 changes: 5 additions & 4 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: pycalphad tests
name: pycalphad tests on Linux

on: [push]

jobs:
Tests:
runs-on: [ubuntu-latest]
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 9
matrix:
python-version: [3.6, 3.7, 3.8]
Expand All @@ -27,6 +28,6 @@ jobs:
- name: Test with pytest
run: |
# coverage<5, see https://github.com/coveralls-clients/coveralls-python/issues/213
conda install pytest pytest-cov coveralls "coverage<5"
conda list
$CONDA/bin/conda install pytest pytest-cov coveralls "coverage<5"
$CONDA/bin/conda list
$CONDA/bin/pytest -v --cov=pycalphad

0 comments on commit e1d3370

Please sign in to comment.