Skip to content

Commit

Permalink
Reorder and rename steps
Browse files Browse the repository at this point in the history
  • Loading branch information
carriepl-mila committed Aug 8, 2023
1 parent cabb31e commit f044661
Showing 1 changed file with 25 additions and 19 deletions.
44 changes: 25 additions & 19 deletions .github/workflows/push_code_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,34 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8
- run: pip install --upgrade https://github.com/alexhernandezgarcia/gflownet/archive/main.zip --quiet
- run: pip install pytest

# Run black on the main source code
- uses: psf/black@stable
- name: Checkout repo code
uses: actions/checkout@v3

- name: Run Black on main source code
uses: psf/black@stable
with:
options: "--check --verbose"
src: "./gflownet/"
# Run black on the unit tests
- uses: psf/black@stable

- name: Run Black on unit test code
uses: psf/black@stable
with:
options: "--check --verbose"
src: "./tests/"

# Validate the imports
- uses: isort/isort-action@master

# Run the unit tests
- run: pytest

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8

- name: Install code dependencies
run: pip install --upgrade https://github.com/alexhernandezgarcia/gflownet/archive/main.zip --quiet

- name: Install Pytest
run: pip install pytest

- name: Validate import format
uses: isort/isort-action@master

- name: Run unit tests
run: pytest

0 comments on commit f044661

Please sign in to comment.