Skip to content

Commit

Permalink
Merge branch 'main' into proper-error-handling
Browse files Browse the repository at this point in the history
  • Loading branch information
chaichontat committed Sep 12, 2021
2 parents 7dea198 + 1f4496a commit dcfa1f0
Show file tree
Hide file tree
Showing 67 changed files with 8,483 additions and 287 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,20 @@ name: Python Package using Conda

on:
push:
branches:
- main
branches: [main]
paths:
- python/**
pull_request:
paths:
- python/**
schedule:
- cron: "0 0 * * 1"

jobs:
build-linux:
runs-on: ubuntu-latest
env:
working-directory: python/

steps:
- uses: actions/checkout@v2
Expand All @@ -22,12 +27,29 @@ jobs:
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda config --add channels conda-forge
conda env update --file python/environment.yml --name base
conda env update --file environment.yml --name base
working-directory: ${{ env.working-directory }}

- name: Run Black
run: |
conda install black
black --check y2020/
working-directory: ${{ env.working-directory }}

- name: Run Mypy
run: |
conda install mypy
mypy y2020/
working-directory: ${{ env.working-directory }}

- name: Test with pytest
run: |
conda install pytest
pip install pytest-xdist[psutil]
# pytest 2019/python
pytest python/y2020
pytest y2020
working-directory: ${{ env.working-directory }}
6 changes: 2 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Setup rust toolchain
run: rustup show

# - uses: Swatinem/rust-cache@v1
# with:
Expand Down
Loading

0 comments on commit dcfa1f0

Please sign in to comment.