Skip to content

Commit

Permalink
Merge pull request #6 from henriquegemignani/feature/run-tests-ci
Browse files Browse the repository at this point in the history
Run tests in ci
  • Loading branch information
henriquegemignani authored Nov 21, 2020
2 parents 81ad2aa + f4a82ff commit 1b17596
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,28 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: 'recursive'

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Install Python packages
run: |
python -m pip install --upgrade -r requirements-setuptools.txt
python -m pip install build
run: python -m pip install --upgrade --use-feature=2020-resolver build pip pytest

- name: build wheel
run: python -m build --wheel .
run: python -m build --wheel

- name: install built wheel
run: python -m pip install dist/*
shell: bash

- name: test
run: python -m pytest test

- name: build sdist
run: python -m build --sdist .
run: python -m build --sdist
if: ${{ matrix.os == 'macos-latest' && matrix.python == '3.9' }}

- name: Store the packages
Expand Down Expand Up @@ -74,11 +80,12 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: 'recursive'

- name: build wheel
run: |
docker pull quay.io/pypa/manylinux2014_x86_64
docker run --rm -e PYTHON_VERSION=${{ matrix.python }} -v $(pwd):/host -w /host quay.io/pypa/manylinux2014_x86_64 ./travis-scripts/build.sh
docker run --rm -e PYTHON_VERSION=${{ matrix.python }} -v $(pwd):/host -w /host quay.io/pypa/manylinux2014_x86_64 ./ci-scripts/build.sh
- name: Store the packages
uses: actions/upload-artifact@v2
Expand Down
File renamed without changes.
3 changes: 0 additions & 3 deletions requirements-setuptools.txt

This file was deleted.

0 comments on commit 1b17596

Please sign in to comment.