Skip to content

Commit

Permalink
Merge pull request #1 from ebmdatalab/bsa_utils
Browse files Browse the repository at this point in the history
Add BSA utils
  • Loading branch information
chrisjwood16 authored Nov 19, 2024
2 parents 56b9406 + 74a2753 commit 9caf59c
Show file tree
Hide file tree
Showing 5 changed files with 452 additions and 15 deletions.
52 changes: 37 additions & 15 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,40 @@
name: GitHub Actions Demo
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
on: [push]
name: English Prescribing Data Change Detector

on:
workflow_dispatch:

jobs:
Explore-GitHub-Actions:
run-script:
runs-on: ubuntu-latest

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
run: |
ls ${{ github.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12.4'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run Python script
run: python src/main.py

- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Commit changes
run: |
git add .
git commit -m "Automated changes by GitHub Actions" || echo "No changes to commit"
- name: Push changes
run: git push
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# pyenv
.python-version

# jupyter
.ipynb_checkpoints
.ipython/
.jupyter/
.local/

# sublime test/pycharm
.idea/
.DS_Store

# Emacs
*~

# Linux trash directories
.Trash-*/
/data
TRUD.secrets
/measures_to_test
notebooks/new_bnf_codes.csv
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pandas==2.2.3
requests==2.32.3
Loading

0 comments on commit 9caf59c

Please sign in to comment.