Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
conorheffron committed Apr 19, 2024
2 parents e69329e + 4bf0900 commit 1f28c6a
Show file tree
Hide file tree
Showing 10 changed files with 111 additions and 43,643 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
51 changes: 51 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
11 changes: 11 additions & 0 deletions .github/workflows/proof-html.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Proof HTML
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: anishathalye/proof-html@v1.1.0
with:
directory: ./
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# normalise-spotify
![Proof HTML](https://github.com/conorheffron/normalise-spotify/actions/workflows/proof-html.yml/badge.svg)

## Min-Max Normalisation of Spotify Data

### See full report at [report](https://conorheffron.github.io/normalise-spotify/assignment-2.pdf)

### Sample CLI usage: python main.py `number_of_decimals_for_rounding`

```shell
Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

def assignment_2(decimals):
# Read spotify data
df = pd.read_csv('./spotify_23211267.csv')
df = pd.read_csv('./spotify.csv')

# Print (# observations, # variables)
print("Spotify data dimensions: " + str(df.shape))
Expand All @@ -34,4 +34,4 @@ def normalise(df, decimals):
print("The number of decimals set is %s" % str(decimals))

# Run assignment 2 code
assignment_2(int(decimals))
assignment_2(int(decimals))
21,813 changes: 0 additions & 21,813 deletions out.csv

This file was deleted.

8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "normalise-spotify",
"version": "2.5.2",
"description": "Min-Max Normalisation of Spotify Music Data",
"dependencies": {
"@primer/css": "17.0.1"
}
}
File renamed without changes.
14 changes: 0 additions & 14 deletions z_sums.csv

This file was deleted.

21,813 changes: 0 additions & 21,813 deletions z_values.csv

This file was deleted.

0 comments on commit 1f28c6a

Please sign in to comment.