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 integration, library upgrade, Python 3.11 support #46

Merged
merged 22 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
a345f41
Fix failing prefix lookup test
schivmeister Oct 4, 2023
080445d
Initial Tox configuration, Python 3.8
schivmeister Oct 6, 2023
64cb9f3
add tox.ini
CaptainOfHacks Oct 16, 2023
9dd15a8
Update requirements-dev.txt
CaptainOfHacks Oct 16, 2023
178cd2a
update github CI/CD workflows
CaptainOfHacks Oct 16, 2023
bffd0e5
Update Makefile
CaptainOfHacks Oct 16, 2023
561e08c
Fix yet another failing test - status code checker
schivmeister Oct 16, 2023
d435b70
Fix another failing test for Python 3.10+
schivmeister Oct 16, 2023
28790a6
Support latest compatible Pandas for Python 3.8
schivmeister Oct 17, 2023
7c4e617
Some CI changes for multiple Py envs, code clarity
schivmeister Oct 19, 2023
11018fc
Soft-lock dependency versions
schivmeister Oct 19, 2023
2d1d48d
Support CI build on Mac and Windows
schivmeister Oct 20, 2023
df68c46
Reintroduce common build dependencies
schivmeister Oct 20, 2023
8ad4875
New version 0.2.0, dropping support for Python <= 3.7
schivmeister Oct 20, 2023
82d1ee9
Update LICENSE
schivmeister Oct 24, 2023
32d2e1f
Change Pandas `df.replace()` usage to reflect docs
schivmeister Oct 24, 2023
78ab4d6
Prevent CI killing all tests on one failure
schivmeister Oct 24, 2023
167877f
Ignore init files from coverage test
schivmeister Oct 24, 2023
dd01865
Cosmetic Makefile improvements
schivmeister Oct 24, 2023
3475ee1
Play nice with Windows builds, especially on GH CI
schivmeister Oct 24, 2023
bcceaa9
Prevent elusive Github CI BrokenPipeError
schivmeister Oct 24, 2023
e95c382
Attempt swallow broken pipe error
schivmeister Oct 24, 2023
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
53 changes: 33 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,60 @@

name: test

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
# Controls when the action will run. Triggers the workflow on push or pull
# request events for the specified branches.
on:
push:
branches: [ master, feature/* ]
pull_request:
branches: [ master ]
branches: [ feature/* , master, fix/*, hotfix/*, release/* ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
# Ensure redundant parallel runs don't occur in the same workflow.
# Use either PR or branch information to prevent such runs.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

# A workflow run is made up of one or more jobs that can run sequentially or in
# parallel
jobs:
# This workflow contains a single job called "build"
build:
name: pytest
strategy:
fail-fast: false
# A job can run for multiple environments
matrix:
python-version: ['3.8', '3.11']
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
# The type of runner that the job will run on
name: Build
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.os }}-${{ matrix.python-version}}
cancel-in-progress: true

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@master
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Windows tooling
if: matrix.os == 'windows-latest'
uses: crazy-max/ghaction-chocolatey@v3
with:
python-version: 3.8
args: install make
- name: Install dependencies
run: |
make install
make install-all
- name: Run tests
run: make test
run: make test-all
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: true
# - name: Publish on PiPy
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.PIPY_USER_TOKEN }}
# run: make publish-pipy
#
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@master
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.11
- name: Install dependencies
run: |
make install
make install-all
- name: Run tests
run: make test
run: make test-all
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ junit_report.xml
/tests/test_data/validation-reports/simple/results/
/tests/test_data/validation-reports/simple/tests/
/tests/test_data/validation-reports/treaties-ap/results/

/tests/test_data/templates_test/output

# Auxiliary files resulted by latex processing
*.aux
Expand Down
Loading