Skip to content

Revert "Syncing to Develop" #91

Revert "Syncing to Develop"

Revert "Syncing to Develop" #91

Workflow file for this run

name: Tests
on:
push:
paths:
- '**.py'
- '**.yml'
- 'requirements.txt'
- '!docs/**'
pull_request:
paths:
- '**.py'
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v2
- name: local-fix
run: |
# Hack to get setup-python to work on act
# (see https://github.com/nektos/act/issues/251)
if [ ! -f "/etc/lsb-release" ] ; then
echo "DISTRIB_RELEASE=18.04" > /etc/lsb-release
fi
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
apt update && apt-get install gcc -y
gcc -v
python --version
pip install -U pip pytest
pip install setuptools_scm
pip install .
- name: Test with pytest
run: |
pytest