This repository was archived by the owner on Apr 10, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +70
-0
lines changed
Expand file tree Collapse file tree 3 files changed +70
-0
lines changed Original file line number Diff line number Diff line change 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/*
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 77 .[test]
88commands = 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]
1114markers =
1215 slow: marks tests as slow (deselect with ' -m "not slow"' )
You can’t perform that action at this time.
0 commit comments