From 12679f511d0f61157678cbac1dd3be100b67659a Mon Sep 17 00:00:00 2001 From: Aleksandr Shtaub Date: Thu, 18 Jan 2024 11:28:03 +0200 Subject: [PATCH] Migrate to GHA --- .github/workflows/test.yml | 39 ++++++++++++++++++++++++++++++++++++++ .travis.yml | 16 ---------------- 2 files changed, 39 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c554404 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,39 @@ +name: Test + +on: + - push + +jobs: + build: + name: Python ${{ matrix.python-version }} / ${{ matrix.tox-environment }} + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + python-version: + - 3.8 + - 3.9 + tox-environment: + - django32 + - django42 + include: + - python-version: 3.9 + - tox-environment: lint + + env: + TOXENV: ${{ matrix.tox-environment }} + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: pip install tox + + - name: Run tests + run: tox diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 37d4ca3..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: python -install: pip install tox -script: tox -e $TOX_ENV -matrix: - include: - - python: 3.8 - env: TOX_ENV=py38-django32 - - - python: 3.8 - env: TOX_ENV=py38-django42 - - - python: 3.9 - env: TOX_ENV=py39-django32 - - - python: 3.9 - env: TOX_ENV=py39-django42