Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tox-gh-actions second try #59

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 0 additions & 36 deletions .github/workflows/py37.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/py38.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/py39.yml

This file was deleted.

16 changes: 11 additions & 5 deletions .github/workflows/py36.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pytest_py36
name: Tests

on:
push:
Expand All @@ -8,7 +8,11 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
python-version: [3.6, 3.7, 3.8, 3.9]
defaults:
run:
shell: bash -l {0}
Expand All @@ -17,20 +21,22 @@ jobs:
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
python-version: 3.6
python-version: ${{ matrix.python-version }}
channels: conda-forge

- name: Install dependencies
run: |
conda install pip setuptools wheel tox coverage[toml]
python -m pip install tox-gh-actions

- name: Test with tox
run: tox -e py36
run: tox

# from https://github.com/codecov/codecov-action
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2
with:
env_vars: OS,PYTHON
files: ./coverage.xml
fail_ci_if_error: true
verbose: true
14 changes: 8 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
minversion = 3.14.0
requires=tox-conda
minversion = 3.24.0
requires=tox-conda==0.9.2
envlist =
build
docs
Expand All @@ -12,10 +12,12 @@ envlist =
#report
ignore_basepython_conflict = true

#[gh-actions]
#python =
# 3.6: py36
# 3.7: py37, build, docs
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39

[testenv]
basepython =
Expand Down