-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from MarcoGorelli/is-workday
finish is workday
- Loading branch information
Showing
10 changed files
with
116 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,17 +19,38 @@ permissions: | |
contents: read | ||
|
||
jobs: | ||
linux: | ||
|
||
linux_tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
target: [x86_64] | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
target: [x86_64, x86, aarch64, armv7] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Set up Rust | ||
run: rustup show | ||
- uses: mozilla-actions/[email protected] | ||
- run: make install | ||
- run: venv/bin/python -m pytest tests | ||
- run: venv/bin/python -m black --check . | ||
- run: venv/bin/python -m mypy polars_xdt #tests | ||
- run: venv/bin/python -m ruff . | ||
|
||
linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
target: [x86_64, x86, aarch64, armv7] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Build wheels | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
|
@@ -42,15 +63,6 @@ jobs: | |
with: | ||
name: wheels | ||
path: dist | ||
- name: pytest | ||
if: ${{ startsWith(matrix.target, 'x86_64') }} | ||
shell: bash | ||
run: | | ||
set -e | ||
pip install -r requirements.txt | ||
pip install polars-xdt --find-links dist --force-reinstall | ||
pip install pytest | ||
pytest | ||
|
||
windows: | ||
runs-on: windows-latest | ||
|
@@ -74,15 +86,6 @@ jobs: | |
with: | ||
name: wheels | ||
path: dist | ||
- name: pytest | ||
if: ${{ !startsWith(matrix.target, 'aarch64') && matrix.target != 'x86' }} | ||
shell: bash | ||
run: | | ||
set -e | ||
pip install -r requirements.txt | ||
pip install polars-xdt --find-links dist --force-reinstall | ||
pip install pytest | ||
pytest | ||
|
||
macos: | ||
runs-on: macos-latest | ||
|
@@ -105,15 +108,6 @@ jobs: | |
with: | ||
name: wheels | ||
path: dist | ||
- name: pytest | ||
if: ${{ !startsWith(matrix.target, 'aarch64') }} | ||
shell: bash | ||
run: | | ||
set -e | ||
pip install -r requirements.txt | ||
pip install polars-xdt --find-links dist --force-reinstall | ||
pip install pytest | ||
pytest | ||
|
||
sdist: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ pandas | |
pytest | ||
holidays | ||
mypy | ||
black | ||
ruff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,4 +88,3 @@ def test_eager_custom_holiday() -> None: | |
], | ||
) | ||
assert_series_equal(result, expected) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters