diff options
author | epenet <6771947+epenet@users.noreply.github.com> | 2022-04-02 12:59:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-02 12:59:22 +0200 |
commit | 2e5d6540e81ae015b5e39503c4f7ed3e2fba93b9 (patch) | |
tree | d03c2a6c4d135e7d5019ca66b44086fb9a3f907b | |
parent | 1d6d41a5e44a7abfc11ced0601a8fb788e655b03 (diff) | |
download | voluptuous-2e5d6540e81ae015b5e39503c4f7ed3e2fba93b9.tar.gz |
Enable github actions (#457)
-rw-r--r-- | .github/workflows/tests.yml | 38 | ||||
-rw-r--r-- | tox.ini | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..9cfed7f --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,38 @@ +name: Tests + +on: + pull_request: + push: + branches: + - master + +jobs: + tests: + name: Tox ${{ matrix.session }} session on Python ${{ matrix.python-version }} + runs-on: "ubuntu-latest" + strategy: + fail-fast: false + matrix: + include: + - { python-version: "3.9", session: "py39" } + - { python-version: "3.8", session: "py38" } + - { python-version: "3.7", session: "py37" } + - { python-version: "3.6", session: "py36" } + + steps: + - name: Check out the repository + uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + + - name: Install tox-setuptools-version + run: | + pip install tox-setuptools-version + + - name: Run tox + run: | + pip install tox + tox -e ${{ matrix.session }} @@ -9,6 +9,7 @@ exclude = .tox,.venv,build,*.egg [testenv] distribute = True sitepackages = False +setuptools_version = setuptools<58.0 deps = nose nose-cover3 |