Skip to content

Commit

Permalink
Merge pull request #94 from Conengmo/github-actions-for-tests
Browse files Browse the repository at this point in the history
run tests on Github Actions
  • Loading branch information
ocefpaf authored Apr 19, 2021
2 parents 18ad186 + 09ae1ba commit 0302cfa
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/test_code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Code Tests

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.6, 3.9]

steps:
- uses: actions/checkout@v2

- name: Setup Conda
uses: s-weigand/setup-conda@v1
with:
activate-conda: false
conda-channels: conda-forge

- name: Python ${{ matrix.python-version }}
shell: bash -l {0}
run: |
conda create --yes --name TEST python=${{ matrix.python-version }} pip --file requirements.txt --file requirements-dev.txt --channel conda-forge --strict-channel-priority
source activate TEST
pip install -e . --no-deps --force-reinstall
- name: Tarball tests
shell: bash -l {0}
run: |
source activate TEST
pip wheel . -w dist --no-deps
check-manifest --verbose
twine check dist/*
- name: Tests
shell: bash -l {0}
run: |
source activate TEST
pytest -vv

0 comments on commit 0302cfa

Please sign in to comment.