Skip to content

Commit

Permalink
Refactor GitHub Actions workflow: add status check step and comment o…
Browse files Browse the repository at this point in the history
…ut test job
  • Loading branch information
jgarcia-ASD committed Dec 27, 2024
1 parent 8971090 commit e00ae31
Showing 1 changed file with 38 additions and 27 deletions.
65 changes: 38 additions & 27 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,44 @@ name: Python application
on: [push]

jobs:
test:

state:
runs-on: ubuntu-latest

env:
ACCESS_TOKEN_EXPIRE_MINUTES: 30

steps:
- name: Checkout repository code
uses: actions/checkout@v2

- name: Set up Python 3.9 environment
uses: actions/setup-python@v2
with:
python-version: '3.9'

- name: Install SQLite
run: sudo apt-get install -y sqlite3

- name: Set up test environment
run: |
mkdir -p test
touch test/LibraryTest.db
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: pytest
- name: status of GitHub Actions in the project
run: echo "Not implemented :c"
# test:
# runs-on: ubuntu-latest

# env:
# ACCESS_TOKEN_EXPIRE_MINUTES: 30
# USER_DB: "test_user"
# PASSWORD_DB: "test_password"
# HOST_DB: "localhost"
# NAME_DB: "test_db"

# steps:
# - name: Checkout repository code
# uses: actions/checkout@v2

# - name: Set up Python 3.9 environment
# uses: actions/setup-python@v2
# with:
# python-version: '3.9'

# - name: Install SQLite
# run: sudo apt-get install -y sqlite3

# - name: Set up test environment
# run: |
# mkdir -p test
# touch test/LibraryTest.db

# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt

# - name: Run tests
# run: pytest

0 comments on commit e00ae31

Please sign in to comment.