diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..71314e0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: ["main"] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + # TODO 1: Add a step to set up Python 3.11. + # Use: actions/setup-python@v5 with python-version: "3.11" + - uses: actions/setup-python@v5 + with: + python-version: "3.11" + + # TODO 2: Add a step to install pytest. + # Use: pip install pytest + - name: Install pytest + run: pip install pytest + # TODO 3: Add a step to run pytest. + # Use: pytest -q + - name: Run tests + run: pytest -q \ No newline at end of file diff --git a/data-track/week-5/exercise_5/.github/workflows/ci.yml b/data-track/week-5/exercise_5/.github/workflows/ci.yml index c484458..71314e0 100644 --- a/data-track/week-5/exercise_5/.github/workflows/ci.yml +++ b/data-track/week-5/exercise_5/.github/workflows/ci.yml @@ -13,9 +13,15 @@ jobs: # TODO 1: Add a step to set up Python 3.11. # Use: actions/setup-python@v5 with python-version: "3.11" + - uses: actions/setup-python@v5 + with: + python-version: "3.11" # TODO 2: Add a step to install pytest. # Use: pip install pytest - + - name: Install pytest + run: pip install pytest # TODO 3: Add a step to run pytest. # Use: pytest -q + - name: Run tests + run: pytest -q \ No newline at end of file