From 2ea706495cf2fa262199c0c2617230c935dc3b8b Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sat, 28 Nov 2020 18:50:02 +0100 Subject: CI: switch from Travis-CI to Github Actions --- .github/workflows/python-versions.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/python-versions.yml (limited to '.github/workflows/python-versions.yml') diff --git a/.github/workflows/python-versions.yml b/.github/workflows/python-versions.yml new file mode 100644 index 0000000..ca979b6 --- /dev/null +++ b/.github/workflows/python-versions.yml @@ -0,0 +1,32 @@ +name: Test with different Python versions +on: [push, pull_request] +jobs: + python: + strategy: + matrix: + python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", pypy3] + runs-on: ubuntu-latest + steps: + - name: Install PortAudio + run: | + sudo apt-get install --no-install-recommends libportaudio2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Double-check Python version + run: | + python --version + - name: Clone Git repository + uses: actions/checkout@v2 + with: + path: git-repo + - name: Install Python package + working-directory: git-repo + run: | + python -m pip install . + - name: Run tests + run: | + python -m sounddevice + python -c "import sounddevice as sd; print(sd._libname)" + python -c "import sounddevice as sd; print(sd.get_portaudio_version())" -- cgit v1.2.3