Skip to content

Commit

Permalink
fIx: Rock Paper Siccor workflow (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianbernhart authored Jul 3, 2024
1 parent 56120be commit 8e99606
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand All @@ -33,5 +29,4 @@ jobs:
- name: Install the project dependencies
run: poetry install
- name: run pytest
run: poetry run pytest -v

run: poetry run pytest -v
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ version = "0.1.0"
description = ""
authors = ["farbian_2005 <fabian_bernhart@web.de>"]
readme = "README.md"
package-mode = false


[tool.poetry.dependencies]
python = "^3.11"
pytest = "^8.2.0"

[tool.poetry.scripts]
main = "main:main"
Expand Down

0 comments on commit 8e99606

Please sign in to comment.