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

Ci/GitHub actions #30

Merged
merged 29 commits into from
Jul 23, 2021
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
2148d42
attempt to make github actions work.
mkolopanis Jul 28, 2020
d55e6db
adding a debug print
mkolopanis Jul 28, 2020
b74892b
remove a copy/paste ENV_NAME from another repo
mkolopanis Jul 28, 2020
74fc0a8
more debug prints
mkolopanis Jul 28, 2020
c49bcd8
add license to data files?
mkolopanis Jul 28, 2020
ff2c1eb
also changelog
mkolopanis Jul 28, 2020
0a81d30
don't run tox in parallel
mkolopanis Jul 28, 2020
1fa9c71
forceably define CONDA_EXE env variable to try to help windows.
mkolopanis Jul 29, 2020
3b773e5
more debug prints, remove env variable
mkolopanis Jul 29, 2020
47b21a7
windows debug stuff
mkolopanis Jul 29, 2020
d04f631
try using miniconda setup action
mkolopanis Jul 29, 2020
ee99b9e
use matrix.python-version for python in action
mkolopanis Jul 29, 2020
79a8d57
typo fix
mkolopanis Jul 29, 2020
becc019
make python-version a list
mkolopanis Jul 29, 2020
11b4914
more debugs and test shell as bash -l {0}
mkolopanis Jul 29, 2020
5344af5
set default bash shell
mkolopanis Jul 29, 2020
418fbc2
make tox do --user for pip upgrade
mkolopanis Jul 29, 2020
ae1d0e9
use tox-gh-actions to parallel with github
mkolopanis Jul 29, 2020
10af17b
add run to final block
mkolopanis Jul 29, 2020
a27a00c
remove some previous debug prints
mkolopanis Jul 29, 2020
43f7138
use newer setup-miniconda action
mkolopanis Nov 19, 2020
f71287b
break flake-8 out of tox, make separate github aciton. add conda yaml
mkolopanis Jul 23, 2021
6315fea
add a testing yaml for conda, move github test to not use tox
mkolopanis Jul 23, 2021
8f1b30e
don't run tests twice
mkolopanis Jul 23, 2021
c166100
remove references to tox, rename test suite. update contributing guide
mkolopanis Jul 23, 2021
d93f565
fix typo in pyargs argument to pytest
mkolopanis Jul 23, 2021
73b3173
remove pyargs argument
mkolopanis Jul 23, 2021
9e3cb0c
break up extras to include a test, only install test for github actions
mkolopanis Jul 23, 2021
825eb3a
ignore some test outputs, all the pycaches and coverage reports
mkolopanis Jul 23, 2021
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: 36 additions & 0 deletions .github/workflows/testsuite.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Test Suite
on: [push, pull_request]

jobs:
tox:
name: Tox Test Suite
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1

- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2.0.0
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}

- name: Conda Info
run: |
conda info
python --version

- name: Set up Tox
run: pip install tox tox-conda tox-gh-actions

- name: Run Tests
run: tox
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def find_version(*file_paths):

setup_args = {
"name": "py21cmsense",
"data_files": [("", ["LICENSE.rst"]), ("", ["CHANGELOG.rst"])],
"version": find_version("py21cmsense", "__init__.py"),
"license": read("LICENSE.rst"),
"long_description": "%s\n%s"
Expand Down
12 changes: 10 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
[tox]
envlist = py36, py37, flake8
envlist = py36, py37, py38, flake8

[travis]
python =
3.7: py37
3.6: py36
3.8: py38

[gh-actions]
python =
2.7: py27
3.6: py36
3.7: py37
3.8: py38, flake8

[testenv:flake8]
basepython = python
Expand All @@ -19,5 +27,5 @@ setenv =
extras =
dev
commands =
pip install -U pip
pip install -U pip --user
py.test --basetemp={envtmpdir}