Skip to content

Commit

Permalink
Merge pull request #111 from hudson-and-thames/feature/code-optimization
Browse files Browse the repository at this point in the history
code style optimization and upgrade action setups
  • Loading branch information
Jackal08 authored May 10, 2024
2 parents 3c7b55e + 6351d81 commit 4eaebc2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-final-dist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.8'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-test-dist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.8'

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/python-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] # Add versions as needed
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- name: Checkout code
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] # Add versions as needed
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- name: Checkout code
Expand All @@ -73,14 +73,14 @@ jobs:
run: |
poetry run pytest tests/ --cov=arbitragelab --cov-report=term --cov-branch --cov-config=.coveragerc
- name: Generate coverage XML report
- name: Generate coverage HTML report
run: poetry run coverage html

- name: Upload Coverage XML Report as Artifact
- name: Upload Coverage HTML Report as Artifact
uses: actions/upload-artifact@v4
with:
name: coverage-html
path: coverage.html
name: coverage-html-${{ matrix.python-version }}
path: build/coverage/html/index.html

- name: Check coverage
run: poetry run coverage report --fail-under=100
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ packages = [
{ include = "arbitragelab" }
]

exclude = ["contrib", "docs", "tests"]
exclude = ["docs", "tests"]

[tool.poetry.dependencies]
python = "^3.8"
Expand Down Expand Up @@ -113,7 +113,6 @@ build-backend = "poetry.core.masonry.api"
coverage = "7.2.7"
pylint = "3.1.0"
pytest = "7.3.1"
pyarmor = "8.5.2"
pytest-cov = "3.0.0"

[tool.poetry.group.docs.dependencies]
Expand All @@ -130,4 +129,5 @@ sphinx-copybutton = "0.5.2"
six = "*"

[tool.poetry.extras]
tests = ["coverage", "pylint", "pytest", "pytest-cov"]
docs = ["sphinx", "sphinx-rtd-theme", "sphinx-tabs", "sphinx-autoapi", "sphinx-copybutton", "myst-parser", "hudsonthames-sphinx-theme", "docutils", "jinja2", "releases"]

0 comments on commit 4eaebc2

Please sign in to comment.