-
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.
* Fix some typing issues * Fix more warning messages * Use uv for compiling dependencies * Use nox
- Loading branch information
1 parent
bc78a22
commit f882e9a
Showing
20 changed files
with
813 additions
and
2,854 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 |
---|---|---|
|
@@ -10,54 +10,18 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
env: | ||
FORCE_COLOR: "1" | ||
PYTHONUNBUFFERED: "1" | ||
FORCE_COLOR: 3 | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- name: Checkout (GitHub) | ||
uses: actions/checkout@v3 | ||
|
||
- name: pdm cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: .cache/pdm | ||
key: ${{ runner.os }}-pdm-${{ hashFiles('pdm.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pdm- | ||
- name: TFDS cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: .tensorflow_datasets | ||
key: ${{ runner.os }}-tfds-${{ hashFiles('pdm.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-tfds- | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and run Dev Container task | ||
uses: devcontainers/[email protected] | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
# Change this to point to your image name | ||
imageName: ghcr.io/ethanluoyc/corax | ||
cacheFrom: ghcr.io/ethanluoyc/corax | ||
# Change this to be your CI task/script | ||
runCmd: | | ||
# Add multiple commands to run if needed | ||
export TFDS_DATA_DIR=$PWD/.tensorflow_datasets | ||
mkdir -p $TFDS_DATA_DIR | ||
pdm config cache_dir .cache/pdm | ||
pdm sync -G:all | ||
pdm lint | ||
pdm test | ||
pdm run python projects/baselines/baselines/iql/train_test.py | ||
python-version: '3.10' | ||
cache: 'pip' # caching pip dependencies | ||
- name: Run nox | ||
run: | | ||
python -m pip install nox | ||
nox -v |
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 @@ | ||
3.10.13 |
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
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,13 @@ | ||
import nox | ||
|
||
|
||
@nox.session | ||
def test(session): | ||
session.install("-r", "requirements/test.txt", "jax[cpu]", "-e", ".[tf,jax]") | ||
session.run("pytest", "-n", "auto", "corax/") | ||
|
||
|
||
@nox.session | ||
def lint(session): | ||
session.install("pre-commit") | ||
session.run("pre-commit", "run", "--all-files") |
Oops, something went wrong.