-
Notifications
You must be signed in to change notification settings - Fork 0
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 #16 from neptune-ai/dev/minimal-flow
Dev/minimal flow
- Loading branch information
Showing
27 changed files
with
1,701 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
name: Package | ||
description: Install python and package | ||
inputs: | ||
python-version: | ||
description: "Python version" | ||
required: true | ||
os: | ||
description: "Operating system" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install Python ${{ inputs.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -r dev_requirements.txt | ||
shell: bash | ||
|
||
- name: List dependencies | ||
run: | | ||
pip list | ||
shell: bash |
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
name: Test Unit | ||
description: Check unit tests | ||
inputs: | ||
python-version: | ||
description: "Python version" | ||
required: true | ||
os: | ||
description: "Operating system" | ||
required: true | ||
report_job: | ||
description: "Job name to update by JUnit report" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install package | ||
uses: ./.github/actions/install-package | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
os: ${{ inputs.os }}-latest | ||
|
||
- name: Test | ||
run: | | ||
pytest -v ./tests/unit/ \ | ||
--timeout=120 --timeout_method=thread \ | ||
--color=yes \ | ||
--junitxml="./test-results/test-unit-new-${{ inputs.os }}-${{ inputs.python-version }}.xml" | ||
shell: bash | ||
|
||
- name: Upload test reports | ||
uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: test-artifacts | ||
path: ./test-results | ||
|
||
- name: Report | ||
uses: mikepenz/[email protected] | ||
if: always() | ||
with: | ||
report_paths: './test-results/test-unit-*.xml' | ||
update_check: true | ||
include_passed: true | ||
annotate_notice: true | ||
job_name: ${{ inputs.report_job }} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Unittests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches-ignore: | ||
- main | ||
|
||
jobs: | ||
test: | ||
timeout-minutes: 75 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu, windows, macos] | ||
python-version: ["3.8"] | ||
name: 'test (${{ matrix.os }} - py${{ matrix.python-version }})' | ||
runs-on: ${{ matrix.os }}-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Run tests | ||
uses: ./.github/actions/test-unit | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
os: ${{ matrix.os }} | ||
report_job: 'test (${{ matrix.os }} - py${{ matrix.python-version }})' |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: unit | ||
|
||
on: | ||
workflow_call: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 4 * * *" # Run every day at arbitrary time (4:00 AM UTC) | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
timeout-minutes: 75 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
os: [ubuntu, windows, macos] | ||
|
||
name: 'test (${{ matrix.os }} - py${{ matrix.python-version }})' | ||
runs-on: ${{ matrix.os }}-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.event.client_payload.pull_request.head.ref }} | ||
|
||
- name: Run tests | ||
uses: ./.github/actions/test-unit | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
os: ${{ matrix.os }} | ||
report_job: 'test (${{ matrix.os }} - py${{ matrix.python-version }})' |
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 |
---|---|---|
@@ -1 +1,18 @@ | ||
## [UNRELEASED] neptune-client-scale 0.1.0 | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
### Added | ||
- Added minimal Run classes ([#6](https://github.com/neptune-ai/neptune-client-scale/pull/6)) | ||
- Added support for `max_queue_size` and `max_queue_size_exceeded_callback` parameters in `Run` ([#7](https://github.com/neptune-ai/neptune-client-scale/pull/7)) | ||
- Added support for logging metadata ([#8](https://github.com/neptune-ai/neptune-client-scale/pull/8)) | ||
- Added support for `creation_time` ([#9](https://github.com/neptune-ai/neptune-client-scale/pull/9)) | ||
- Added support for Forking ([#9](https://github.com/neptune-ai/neptune-client-scale/pull/9)) | ||
- Added support for Experiments ([#9](https://github.com/neptune-ai/neptune-client-scale/pull/9)) | ||
- Added support for Run resume ([#9](https://github.com/neptune-ai/neptune-client-scale/pull/9)) | ||
- Added support for env variables for project and api token ([#11](https://github.com/neptune-ai/neptune-client-scale/pull/11)) |
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 |
---|---|---|
|
@@ -2,3 +2,6 @@ | |
|
||
# dev | ||
pre-commit | ||
pytest | ||
pytest-timeout | ||
freezegun |
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
Oops, something went wrong.