-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
60 additions
and
5 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
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,49 @@ | ||
# test build CI, all the steps are the same as publish.yml, except will not publish | ||
# to pypi or doing tests. | ||
name: RL Test Build | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- "src/lpsim/env/**/*.py" | ||
pull_request: | ||
paths: | ||
- "src/lpsim/env/**/*.py" | ||
|
||
jobs: | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for setuptools_scm | ||
fetch-tags: true # Fetch all tags for setuptools_scm | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ".[rl]" | ||
- name: Fetch tags and print | ||
run: | | ||
git tag | ||
python -m setuptools_scm | ||
- name: Create distributions | ||
run: | | ||
python -m build | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: package-rl | ||
path: dist/* |