Skip to content

Commit

Permalink
Merge pull request #321 from insight-lane/setup_tox
Browse files Browse the repository at this point in the history
General repository cleanup
  • Loading branch information
bpben authored May 12, 2024
2 parents 8f9f23d + 883bb1a commit 39b9c69
Show file tree
Hide file tree
Showing 42 changed files with 498 additions and 1,671 deletions.
56 changes: 31 additions & 25 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ jobs:
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: false
activate-environment: crash-model
environment-file: conda-linux-64.lock
# activate-environment: crash-model
# environment-file: conda-linux-64.lock
channels: conda-forge, defaults
channel-priority: strict
- name: Run linux tests
run: |
set -eo pipefail
conda env create --name crash-model -f requirements.txt
conda activate crash-model
cd src
py.test --cov=./ --cov-report=xml
Expand All @@ -47,35 +50,38 @@ jobs:
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
activate-environment: crash-model
environment-file: conda-osx-64.lock
#activate-environment: crash-model
#environment-file: conda-osx-64.lock
#environment-file: environment_mac.yml
channels: conda-forge, defaults
channel-priority: strict
- name: Run mac tests
run: |
set -eo pipefail
. /usr/local/miniconda/etc/profile.d/conda.sh
sudo chown -R $USER $CONDA
conda env create --name crash-model -f requirements.txt
conda activate crash-model
cd src
pylint pipeline.py initialize_city.py data/*.py visualization/*.py data_standardization/*.py models/*.py features/*.py tools/*.py
py.test
windows:
env:
PYTHONFAULTHANDLER: "true"
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
activate-environment: crash-model
environment-file: conda-win-64.lock

- name: Run windows tests
shell: bash -l {0}
run: |
set -eo pipefail
cd src
pylint pipeline.py initialize_city.py data/*.py visualization/*.py data_standardization/*.py models/*.py features/*.py tools/*.py
py.test
pytest
# unclear that we need to test on windows
# windows:
# env:
# PYTHONFAULTHANDLER: "true"
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v2
# - uses: conda-incubator/setup-miniconda@v2
# with:
# auto-update-conda: true
# #activate-environment: crash-model
# #environment-file: conda-win-64.lock
# channels: conda-forge, defaults
# channel-priority: strict
# - name: Run windows tests
# shell: bash -l {0}
# run: |
# set -eo pipefail
# conda env create --name crash-model -f requirements.txt
# cd src
# py.test
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ ENV/
Scripts

# Data
data/
/data/
142 changes: 0 additions & 142 deletions Makefile

This file was deleted.

3 changes: 0 additions & 3 deletions data_generation/tests/__init__.py

This file was deleted.

33 changes: 0 additions & 33 deletions data_generation/tests/test_create_segments.py

This file was deleted.

30 changes: 0 additions & 30 deletions data_generation/tests/test_extract_intersections.py

This file was deleted.

Loading

0 comments on commit 39b9c69

Please sign in to comment.