mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-24 04:11:39 -07:00
Issue 379 tox setup (#405)
* 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
This commit is contained in:
parent
387ee3a382
commit
55dabb2b57
4 changed files with 235 additions and 61 deletions
35
.github/workflows/data-checks.yml
vendored
Normal file
35
.github/workflows/data-checks.yml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
# 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
|
Loading…
Add table
Add a link
Reference in a new issue