Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Commit a1b0883

Browse files
Merge pull request #281 from Holt59/master
Switch from Travis CI to GitHub actions
2 parents 47ff4e2 + 7fdf0f8 commit a1b0883

File tree

4 files changed

+70
-25
lines changed

4 files changed

+70
-25
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: upload to pypi
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: '3.x'
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install setuptools wheel twine
21+
- name: Build and publish
22+
env:
23+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
24+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
25+
run: |
26+
python setup.py sdist bdist_wheel
27+
twine upload dist/*

.github/workflows/python-tests.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: lucid tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
checks:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
max-parallel: 4
10+
matrix:
11+
python-version: [3.7]
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v1
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install tox
23+
- name: Test with tox
24+
run: tox -e py$(echo ${{ matrix.python-version }} | tr -d .)
25+
- name: Coveralls Parallel
26+
uses: AndreMiras/coveralls-python-action@develop
27+
with:
28+
github-token: ${{ secrets.GITHUB_TOKEN }}
29+
flag-name: run-${{ matrix.python-version }}
30+
parallel: true
31+
32+
finish:
33+
needs: checks
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Coveralls Finished
37+
uses: AndreMiras/coveralls-python-action@develop
38+
with:
39+
github-token: ${{ secrets.GITHUB_TOKEN }}
40+
parallel-finished: true

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ deps =
77
.[test]
88
commands = coverage run --source lucid --omit lucid/scratch/*,lucid/recipes/*,lucid/misc/gl/* -m py.test {posargs}
99

10+
[coverage:run]
11+
relative_files = True
12+
1013
[pytest]
1114
markers =
1215
slow: marks tests as slow (deselect with '-m "not slow"')

0 commit comments

Comments
 (0)