Skip to content

Commit

Permalink
ci: Make CI use scripts, not tox
Browse files Browse the repository at this point in the history
  • Loading branch information
riddell-stan authored and ahartikainen committed Jan 2, 2021
1 parent d681161 commit 4d82ccd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 36 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,23 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install poetry and tox
run: pip install "poetry==1.0.10" tox
- name: Install poetry
run: pip install "poetry~=1.1.4"

# export test dependencies from pyproject.toml, install them
- name: Install dependencies
run: |
poetry export -f requirements.txt --dev -o requirements.txt \
poetry export -f requirements.txt --without-hashes --dev -o requirements.txt \
&& pip install -r requirements.txt
- name: Build and Install wheel
run: |
poetry build -v
python -m pip install dist/*.whl
- name: Check code
if: matrix.python-version == '3.8' && matrix.os == 'ubuntu-20.04'
run: tox
if: matrix.python-version == '3.8'
run: scripts/check

- name: Run tests
run: poetry install -v && poetry run pytest -s -v tests
run: python -m pytest -s -v tests
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

0 comments on commit 4d82ccd

Please sign in to comment.