-
Notifications
You must be signed in to change notification settings - Fork 15
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 #197 from avcopan/dev
New: GitHub actions for testing and linting
- Loading branch information
Showing
3 changed files
with
87 additions
and
191 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
name: lint | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
# Repository | ||
- name: Checkout the code | ||
uses: actions/checkout@v4 | ||
|
||
# Environment | ||
- name: Download environment files | ||
run: | | ||
wget https://raw.githubusercontent.com/Auto-Mech/amech-dev/main/pixi.toml | ||
wget https://raw.githubusercontent.com/Auto-Mech/amech-dev/main/pixi.lock | ||
- name: Set up Pixi | ||
uses: prefix-dev/setup-pixi@v0.8.1 | ||
|
||
- name: Pip install | ||
run: | | ||
pixi run pip install -e . --no-deps | ||
# Lint | ||
- name: Lint | ||
run: | | ||
# # broken | ||
# pixi run ./lint.sh | ||
echo "Skipping until we are ready to turn this on again..." |
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,50 @@ | ||
name: test | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
# Repository | ||
- name: Checkout the code | ||
uses: actions/checkout@v4 | ||
|
||
# Environment | ||
- name: Download environment files | ||
run: | | ||
wget https://raw.githubusercontent.com/Auto-Mech/amech-dev/main/pixi.toml | ||
wget https://raw.githubusercontent.com/Auto-Mech/amech-dev/main/pixi.lock | ||
- name: Set up Pixi | ||
uses: prefix-dev/setup-pixi@v0.8.1 | ||
|
||
- name: Pip install | ||
run: | | ||
pixi run pip install git+https://github.com/Auto-Mech/autochem.git | ||
pixi run pip install -e . --no-deps | ||
# Test | ||
- name: Test | ||
run: | | ||
pixi run pytest -v autoparse | ||
pixi run pytest -v autoread | ||
pixi run pytest -v autowrite | ||
pixi run pytest -v ioformat | ||
pixi run pytest -v chemkin_io | ||
pixi run pytest -v projrot_io | ||
pixi run pytest -v polyrate_io | ||
pixi run pytest -v thermp_io | ||
pixi run pytest -v onedmin_io | ||
# # broken: | ||
# pixi run pytest -v pac99_io # ! fix | ||
# pixi run pytest -v varecof_io # ! fix | ||
# pixi run pytest -v mess_io # ! FIX ! | ||
# pixi run pytest -v autorun # ! fix | ||
# pixi run pytest -v elstruct # ! fix |