Skip to content

Commit

Permalink
Merge pull request #14 from courage-tci/dev
Browse files Browse the repository at this point in the history
0.6.0
  • Loading branch information
evtn committed Jan 29, 2024
2 parents 13c67cb + c880d8a commit 1685e9a
Show file tree
Hide file tree
Showing 20 changed files with 629 additions and 156 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ jobs:
with:
python-version: 3.9

- name: Install Poetry
uses: abatilo/actions-poetry@v2

- name: Build and Publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
python -m pip install poetry
poetry install
poetry build
poetry config pypi-token.pypi $PYPI_TOKEN
Expand Down
47 changes: 16 additions & 31 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,17 @@ jobs:
with:
python-version: 3.9

- run: |
python -m pip install poetry
poetry install
- name: Install Poetry
uses: abatilo/actions-poetry@v2

# currently mypy check won't pass due to https://github.com/python/mypy/issues/14312

# - run: python -m pip install mypy
# - run: python -m mypy gekkota/ --disallow-any-expr --pretty --show-error-codes

# relying on pyright should be fine for a while

- run: python -m pip install pyright
- run: python -m pyright gekkota/
- run: poetry install --with dev
- run: poetry run pyright

run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

name: Run Tests

Expand All @@ -53,11 +45,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

# I couldn't get poetry install to work on CI ¯\_(ツ)_/¯
- run: python -m pip install pytest coverage coveralls typing-extensions
- name: Install Poetry
uses: abatilo/actions-poetry@v2

- run: poetry install --with dev

- name: Test
run: coverage run -m pytest test/
run: poetry run coverage run -m pytest test/

update-coverage:
runs-on: ubuntu-latest
Expand All @@ -70,25 +64,16 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4

- run: python -m pip install pytest coverage coveralls typing-extensions
- name: Install Poetry
uses: abatilo/actions-poetry@v2

- name: Test
run: coverage run --include "gekkota/*" -m pytest test/

# Coveralls seems to be posting coverage data in PRs already lol
- run: poetry install --with dev

# - name: Coverage report
# run: python .github/coverage_comment.py
# if: github.event_name == 'pull_request'

# - name: Publish a comment with coverage
# uses: mshick/add-pr-comment@v2
# with:
# message-path: ./coverage.txt
# if: github.event_name == 'pull_request'
- name: Test
run: poetry run coverage run --include "gekkota/*" -m pytest test/

- name: Coveralls update

run: coveralls --service=github
run: poetry run coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1685e9a

Please sign in to comment.