Skip to content

Commit

Permalink
Merge branch 'main' into TheManWholikestocode-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Freeman committed Jan 8, 2024
2 parents 7ad9f01 + 4578319 commit d9c59ed
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 10 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/Unit-Tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run Blackboard Session Tests

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install backend dependencies
run: |
python -m pip install --upgrade pip
pip install -r backend/requirements.txt
- name: Run tests
run: |
python backend/test_blackboard_scraper.py
26 changes: 18 additions & 8 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,35 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
release:
types: [published]

jobs:

backend-build:

runs-on: ubuntu-latest

steps:
- name: Checkout backend code
uses: actions/checkout@v3
- name: Build the Docker image for backend
run: docker build ./backend -t backend-image-name:$(date +%s)

- name: Build and push the Docker image for backend
run: |
TIMESTAMP=$(date +%s)
docker build ./backend -t themanwholikestocode/archive-me-prod:backend-$TIMESTAMP
docker tag themanwholikestocode/archive-me-prod:backend-$TIMESTAMP domain.com/repo/tag_docker_name:latest
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
docker push themanwholikestocode/archive-me-prod:backend-$TIMESTAMP
frontend-build:

runs-on: ubuntu-latest

steps:
- name: Checkout frontend code
uses: actions/checkout@v3
- name: Build the Docker image for frontend
run: docker build ./frontend -t frontend-image-name:$(date +%s)

- name: Build and push the Docker image for frontend
run: |
TIMESTAMP=$(date +%s)
docker build ./frontend -t themanwholikestocode/archive-me-prod:frontend-$TIMESTAMP
docker tag themanwholikestocode/archive-me-prod:frontend-$TIMESTAMP domain.com/repo/tag_docker_name:latest
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
docker push themanwholikestocode/archive-me-prod:frontend-$TIMESTAMP
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# Blackboard Scraper
# Archive-Me

Archive Me is a tool for students to easily archive and track their course materials on Blackboard. It helps students store and organize their coursework for long-term access and reference. This tool is useful for college students to preserve their academic records.

Expand Down
2 changes: 1 addition & 1 deletion backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ bs4
gunicorn
flask_cors
flask_apscheduler
pydrive2
pydrive2

0 comments on commit d9c59ed

Please sign in to comment.