Skip to content

Commit

Permalink
Use gh-actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaomy3832 committed Jan 23, 2021
1 parent b15282f commit cb03cd9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/test.yml
Expand Up @@ -42,14 +42,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox coveralls
pip install tox tox-gh-actions coveralls
- name: Test
run: |
export TOXENV=$(tox --listenvs | grep $(echo "py${{ matrix.python-version }}-" | tr -d . | sed -e "s/pypypy/pypy/") | tr "\n" ",")
echo $TOXENV
xvfb-run --auto-servernum tox
- name: Cleanup xvfb
uses: bcomnes/cleanup-xvfb@v1
uses: GabrielBB/xvfb-action@v1
with:
run: tox
- name: Upload parallel coverage data
run: |
coveralls
Expand All @@ -65,7 +62,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Coverage finished
- name: Finish uploading coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
9 changes: 9 additions & 0 deletions tox.ini
Expand Up @@ -8,6 +8,15 @@ envlist =
py{38}-mpl{32,33},
cov-end

[gh-actions]
python =
2.7: py27
3.4: py34
3.5: py35
3.6: py36
3.7: py37
3.8: py38

[testenv]
deps =
pytest
Expand Down

0 comments on commit cb03cd9

Please sign in to comment.