diff --git a/.github/workflows/rock-paper-siccors.yml b/.github/workflows/install-test.yml similarity index 79% rename from .github/workflows/rock-paper-siccors.yml rename to .github/workflows/install-test.yml index 360e2c4..f9e2b1c 100644 --- a/.github/workflows/rock-paper-siccors.yml +++ b/.github/workflows/install-test.yml @@ -1,16 +1,12 @@ -name: CI +name: install & test on: push: branches: - master pull_request: - jobs: setup: runs-on: ubuntu-latest - defaults: - run: - working-directory: src/machine-learning-with-python/rock-paper-scissors steps: - uses: actions/checkout@v4 - name: Install Python @@ -24,7 +20,7 @@ jobs: - name: Setup a local virtual environment (if no poetry.toml file) run: | poetry config virtualenvs.create true --local - poetry config virtualenvs.in-project true --local + poetry config virtualenvs.in-project true - uses: actions/cache@v3 name: Define a cache for the virtual environment based on the dependencies lock file with: @@ -33,5 +29,4 @@ jobs: - name: Install the project dependencies run: poetry install - name: run pytest - run: poetry run pytest -v - \ No newline at end of file + run: poetry run pytest -v \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index b6eac46..53ef15d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,9 +4,12 @@ version = "0.1.0" description = "" authors = ["farbian_2005 "] readme = "README.md" +package-mode = false + [tool.poetry.dependencies] python = "^3.11" +pytest = "^8.2.0" [tool.poetry.scripts] main = "main:main"