mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 10:04:18 -08:00
* Adds tox as a dev dependency to data/data-pipeline/pyproject.toml: Also updates poetry.lock and requirements.txt * Adds tox.ini to test build of data/data-pipeline * Sets up GitHub actions workflow for data/ directory * Tries to get Data Checks GitHub action to run * Fixes error with GitHub action * Migrates data/data-roadmap from setuptools to poetry * Sets up tox file for data/data-roadmap * Adds github action for data/data-roadmap * Fixes syntax error in data-checks.yml * Second attempt at fixing data-checks.yml * Export poetry requirements to requirements.txt * Revert "Migrates data/data-roadmap from setuptools to poetry" This reverts commit e8367652d43c1c9beee500f792c8f41e1c1fc462. * Removes pyproject.toml and reverts requirements.txt as well
35 lines
888 B
YAML
35 lines
888 B
YAML
# This runs tox in the two directories under data
|
|
name: Data Checks
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
branches: [ main ] # runs on any PR against main
|
|
|
|
|
|
jobs:
|
|
data-pipeline:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
# checks all of the versions allowed in pyproject.toml
|
|
python-version: [3.7, 3.8, 3.9]
|
|
|
|
steps:
|
|
# installs python
|
|
# one execution of the tests per version listed above
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
# installs poetry
|
|
- uses: Gr1N/setup-poetry@v4
|
|
- name: Install dependencies
|
|
run: |
|
|
cd data/data-pipeline
|
|
poetry install
|
|
- name: Run tox
|
|
run: |
|
|
cd data/data-pipeline
|
|
poetry run tox
|