-
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 #218 from TeamEpochGithub/v4.0.0
V4.0.0
- Loading branch information
Showing
88 changed files
with
1,361 additions
and
488 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,14 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
groups: | ||
python-packages: | ||
patterns: | ||
- "*" |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Deploy Sphinx documentation to Pages | ||
|
||
on: | ||
push: | ||
branches: [ main ] # Branch to trigger deployment | ||
|
||
jobs: | ||
pages: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
permissions: | ||
pages: write | ||
id-token: write | ||
steps: | ||
- id: deployment | ||
uses: sphinx-notes/pages@v3 | ||
with: | ||
python_version: 3.12 |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Static Analysis | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main", "v*" ] | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4.1.6 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python 3.10.14 | ||
uses: actions/setup-python@v5.1.0 | ||
with: | ||
python-version: 3.10.14 | ||
- name: Run pre-commit | ||
uses: pre-commit/action@v3.0.1 |
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,78 +1,33 @@ | ||
name: Version Branch CI/CD | ||
|
||
on: | ||
pull_request: | ||
branches: ["v*"] | ||
pull_request: | ||
branches: ["v*"] | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.11 | ||
- name: Install pre-commit | ||
run: pip install pre-commit | ||
- name: Run pre-commit | ||
run: pre-commit run --all-files | ||
|
||
pytest: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: python:3.11-slim | ||
env: | ||
NODE_VERSION: 20 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
- name: Check out repository | ||
uses: actions/checkout@v4.1.6 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Create virtual environment | ||
run: python -m venv venv | ||
|
||
- name: Activate virtual environment | ||
run: | | ||
. venv/bin/activate | ||
- name: Install dependencies | ||
run: | | ||
venv/bin/python -m pip install --upgrade pip | ||
venv/bin/python -m pip install pytest | ||
venv/bin/python -m pip install -r requirements-dev.lock | ||
venv/bin/python -m pip install pytest-cov coverage | ||
fetch-depth: 0 | ||
- name: Install the latest version of Rye | ||
uses: eifinger/setup-rye@v3.0.2 | ||
- name: Setup the environment | ||
run: rye sync --all-features | ||
- name: Test with pytest | ||
run: | | ||
venv/bin/python -m pytest --cov=epochalyst --cov-branch --cov-fail-under=95 tests | ||
run: rye run pytest --cov=epochalyst --cov-branch --cov-fail-under=95 tests | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.11 | ||
|
||
- run: | | ||
pip install build | ||
python -m build | ||
- uses: actions/upload-artifact@v3 | ||
- name: Check out repository | ||
uses: actions/checkout@v4.1.6 | ||
- name: Install the latest version of Rye | ||
uses: eifinger/setup-rye@v3.0.2 | ||
- name: Build the package | ||
run: rye build | ||
- uses: actions/upload-artifact@v4.3.3 | ||
with: | ||
path: ./dist |
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 |
---|---|---|
|
@@ -168,8 +168,8 @@ cython_debug/ | |
data/ | ||
|
||
# Ignore logs | ||
logging/ | ||
wandb/ | ||
/logging/ | ||
/wandb/ | ||
|
||
# Ignore zip files | ||
*.zip | ||
|
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
Oops, something went wrong.