diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..32a4bea --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,31 @@ +name: CI +on: + push: + branches: + - "main" + pull_request: + workflow_dispatch: +jobs: + test: + name: Run tests + strategy: + fail-fast: true + matrix: + python-version: ["3.7", "3.8", "3.9", "3.10"] + # only test on ubuntu until we get it working then expand to other + # platforms + os: [ubuntu-latest] + # os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${matrix.os} + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + 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 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a9acb12..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: python -python: - - "3.6" - - "3.7" - - "3.8" - - "3.9" - - "3.10" -install: - - pip install tox - - pip install tox-travis - - pip install pep8 -script: - - tox - - pep8 fixture_magic --max-line-length=120 \ No newline at end of file diff --git a/tox.ini b/tox.ini index ce5f508..09b42ab 100644 --- a/tox.ini +++ b/tox.ini @@ -3,7 +3,7 @@ envlist = py{37,38,39,310}-django{32} py{39,310}-django{40} py{39,310}-django{41} -[travis] +[gh-actions] python = 3.7: py37 3.8: py38