Skip to content

Merge pull request #76 from nimh-dsst/make-hacky-data-fix #165

Merge pull request #76 from nimh-dsst/make-hacky-data-fix

Merge pull request #76 from nimh-dsst/make-hacky-data-fix #165

Workflow file for this run

name: Tests
on: push
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: opentofu/setup-opentofu@v1
- name: Install tflint
run: curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
- uses: pre-commit/[email protected]
tox-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Start ScienceBeam Docker container
run: |
docker run -d --rm -p 8070 elifesciences/sciencebeam-parser
- name: Run tests
run: |
tox
- name: Test packaging
run: |
tox -e .package