Skip to content

Commit

Permalink
Switch to tox for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jordemort committed Apr 14, 2022
1 parent 81f49f9 commit 8185ac7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Test

on: [push, pull_request]
on:
pull_request:

jobs:
build:
Expand All @@ -9,24 +10,26 @@ jobs:

strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9']
python-version: ['3.7', '3.8', '3.9', '3.10']

name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2

- uses: actions/setup-go@v2

- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64

- name: Install dependencies
run: |
python -m pip install -r development.txt
python -m pip install .
- name: Test
# For some reason .so's being built aren't working and I have no idea why.
# Let python use the wheel that we installed above by deleting the module in the folder
python -m pip install --upgrade pip wheel
python -m pip install tox tox-gh-actions
- name: Test with tox
run: |
rm -rf pystarlark/
make test
export PYTHONFAULTHANDLER=1
tox
13 changes: 13 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tox:tox]
envlist = py37, py38, py39, py310

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310

[testenv]
deps = -r development.txt
commands = pytest -v

0 comments on commit 8185ac7

Please sign in to comment.