From 4e330a1849a587be457494912749b664e470ba70 Mon Sep 17 00:00:00 2001 From: mrtedn21 Date: Fri, 3 Nov 2023 13:31:52 +0700 Subject: [PATCH] installing of dependencies --- .github/workflows/github-actions-demo.yml | 36 +++++++++++++++-------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 769842c..4824722 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -1,19 +1,29 @@ -name: GitHub Actions Demo -run-name: ${{ github.actor }} is testing out GitHub Actions 🚀 +name: Python package + on: [push] + jobs: - Explore-GitHub-Actions: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: "3.11" + steps: - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: Display Python version + run: python -c "import sys; print(sys.version)" + + - name: Install dependencies run: | - ls ${{ github.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." + python -m pip install --upgrade pip + pip install poetry + poetry install