Skip to content

Commit

Permalink
Migrate to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cphyc committed Feb 28, 2022
1 parent 831fe06 commit ec9c345
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 118 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Python package

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt install yorick
python -m pip install --upgrade pip
python -m pip install .[test]
- name: Test with pytest
run: |
pytest
- uses: actions/upload-artifact@v2
if: failure()
with:
name: pytest-${{ matrix.python-version }}-results
path: results
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

24 changes: 0 additions & 24 deletions Requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ requires = [

[tool.black]
line-length = 88
target-version = ['py36', 'py37', 'py38']
target-version = ['py37', 'py38', 'py39']
include = '\.pyi?$'
exclude = '''
/(
Expand Down
12 changes: 6 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,19 @@ install_requires =
yt>=4.0
python_requires = >=3.7
include_package_data = True
setup_requires =
pytest-runner
tests_require = pytest==5.4.1; mpmath==1.1.0
zip_safe = False

[options.entry_points]
console_scripts =
astrophysics_toolset=astrophysics_toolset.cli:main
ramses_change_ncpu=astrophysics_toolset.ramses.ramses_change_ncpu:main

[options.extras_require]
all =
pyorick>=1.4
test =
pytest~=6.2.5

[bumpversion]
current_version = 0.2.3
commit = True
Expand Down Expand Up @@ -73,6 +76,3 @@ jobs = 8

[aliases]
test = pytest

[tool:pytest]
collect_ignore = ['setup.py']
56 changes: 0 additions & 56 deletions tox.ini

This file was deleted.

0 comments on commit ec9c345

Please sign in to comment.