Skip to content

Commit

Permalink
Merge main into sweep/add-cnn-class_3
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-nightly[bot] authored Oct 22, 2023
2 parents 8bcd0d4 + 759168c commit 7b3e50d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Pytest

on: [push]

jobs:
pytest:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.x'

# Caching Poetry dependencies
- name: Cache Poetry dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Install Dependencies
run: |
poetry install
- name: Run Pytest
run: poetry run pytest
2 changes: 2 additions & 0 deletions sweep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ rules:
- "There should be no unused imports or variables."
- "Code should be properly commented and include docstrings for functions and classes."

repo_description: "Use pytest to write unit tests."

# This is the branch that Sweep will develop from and make pull requests to. Most people use 'main' or 'master' but some users also use 'dev' or 'staging'.
branch: 'main'

Expand Down

0 comments on commit 7b3e50d

Please sign in to comment.