Skip to content

Commit

Permalink
update to new study test action and remove old uneeded action
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodearnest committed Feb 1, 2021
1 parent 49f5c2b commit 1924924
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 46 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/branch_release_deleter.yaml

This file was deleted.

36 changes: 6 additions & 30 deletions .github/workflows/test_runner.yaml
Original file line number Diff line number Diff line change
@@ -1,38 +1,14 @@
name: Test that the project is runnable

on: [push]
on: [push, workflow_dispatch]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKER_RO_TOKEN: ${{ secrets.DOCKER_RO_TOKEN }}
STATA_LICENSE: ${{ secrets.STATA_LICENSE }}
jobs:
test_model:
test:
runs-on: ubuntu-latest
name: Test the project can run, using dummy data
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install opensafely-cohort-extractor
- name: Docker Login
uses: azure/docker-login@v1
with:
# It seems we can't do this with the standard GITHUB_TOKEN, but
# have to use a personal token with the correct permissions instead
login-server: docker.opensafely.org
username: docker
password: ${{ secrets.OPENSAFELY_DOCKER_PASSWORD }}

- name: Update codelists
run: cohortextractor update_codelists
- name: dos2unix
run: sed -i 's/\r//' codelists/*.csv
- name: Check codelists are up to date
run: '[[ -z $(git status --porcelain codelists) ]] || (echo "Uncommitted changes to codelists detected, aborting" && exit 1)'

- name: Run the project
run: cohortextractor --verbose run dummy run_all expectations
- name: Test that the project is runnable
uses: opensafely-core/research-action@v1

0 comments on commit 1924924

Please sign in to comment.