Merge pull request #17 from kieran-mackle/development #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.7", "3.8", "3.9"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install gdtk | |
run: | | |
mkdir gdtk | |
cd gdtk/ | |
git init | |
git remote add -f origin https://github.com/gdtk-uq/gdtk.git | |
git config core.sparseCheckout true | |
echo "src/lib/" >> .git/info/sparse-checkout | |
git pull origin master | |
cd src/lib | |
python3 -m pip install . | |
cd ../../../ | |
- name: Install package | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest | |
pip install ./ | |
- name: Test with pytest | |
run: | | |
pytest tests |