Skip to content

Commit c67c59c

Browse files
committed
move tarball tests to GHA
1 parent 75161e5 commit c67c59c

2 files changed

Lines changed: 34 additions & 9 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Tarball tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [master]
7+
8+
jobs:
9+
run:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Setup Conda
15+
uses: s-weigand/setup-conda@v1
16+
with:
17+
activate-conda: false
18+
conda-channels: conda-forge
19+
20+
- name: Create environment
21+
shell: bash -l {0}
22+
run: |
23+
conda create --name TEST python=3 python-build cython numpy --file requirements-dev.txt
24+
source activate TEST
25+
conda info --all
26+
conda list
27+
28+
- name: Tarball
29+
shell: bash -l {0}
30+
run: |
31+
source activate TEST
32+
python -m build --skip-dependencies --sdist --wheel .
33+
check-manifest --verbose
34+
twine check dist/*

.travis.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ matrix:
1111
include:
1212
- name: "docs"
1313
env: NUMPY=1 PY=3
14-
- name: "tarball"
15-
env: NUMPY=1 PY=3
1614

1715
before_install:
1816
# Install miniconda and create TEST env.
@@ -36,13 +34,6 @@ install:
3634
- pip install -e . --no-deps --force-reinstall
3735

3836
script:
39-
- |
40-
if [[ $TRAVIS_JOB_NAME == 'tarball' ]]; then
41-
python -m pep517.build --source --binary . --out-dir dist
42-
check-manifest --verbose
43-
twine check dist/*
44-
fi
45-
4637
- |
4738
if [[ $TRAVIS_JOB_NAME == 'docs' ]]; then
4839
pushd docs

0 commit comments

Comments
 (0)