Skip to content

Commit

Permalink
new branch for feature to add tox testing both locally and via github…
Browse files Browse the repository at this point in the history
… actions
  • Loading branch information
Michael J. O'Neill committed Jul 27, 2022
1 parent 7a26a0d commit 0daade9
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/tox-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: run github actions with tox

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

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox

2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
addopts = -v -ra
26 changes: 26 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[tox]
envlist = py38, py39, py310

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

[testenv:py38]
basepython = python3.8
deps = -rrequirements.txt
commands = pytest
python ./smallscheme/main.py -t tests.scm

[testenv:py39]
basepython = python3.9
deps = -rrequirements.txt
commands = pytest
python ./smallscheme/main.py -t tests.scm

[testenv:py310]
basepython = python3.10
deps = -rrequirements.txt
commands = pytest
python ./smallscheme/main.py -t tests.scm

0 comments on commit 0daade9

Please sign in to comment.