1010 black :
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v2
13+ - uses : actions/checkout@v3
1414 - name : Check files using the black formatter
1515 uses : rickstaa/action-black@v1
1616 id : action_black
@@ -29,52 +29,55 @@ jobs:
2929 python-version : [3.7, 3.8, 3.9]
3030
3131 steps :
32- - uses : actions/checkout@v2
33- - name : Set up Python ${{ matrix.python-version }}
34- uses : actions/setup-python@v2
32+ - uses : actions/checkout@v3
33+ - uses : actions/setup-python@v4
3534 with :
3635 python-version : ${{ matrix.python-version }}
36+ cache : ' pip'
3737 - name : Install dependencies
3838 run : |
39- python -m pip install --upgrade pip
40- pip install tox tox-gh-actions mypy
41- - name : Test with tox
42- run : tox
39+ pip install --upgrade pip
40+ pip install -e .[test]
41+ - name : Test with pytest
42+ run : pytest tests
4343 - name : Check passthrough models
4444 run : python scripts/generate_passthrough_modules.py check
45- - name : Mypy
46- if : ${{ matrix.python-version != '3.7' }}
47- run : |
48- mkdir -p .mypy-cache
49- mypy . --install-types --non-interactive --cache-dir .mypy-cache --explicit-package-bases --check-untyped-defs
45+ # todo: add mypy checks for python 3.10 when we can add KW_ONLY to dataclasses
46+ # allowing dataclass inheritance w/o the 'missing' default value
47+ # - name: MyPy
48+ # if: ${{ matrix.python-version == '3.10' }}
49+ # run: |
50+ # mkdir -p .mypy-cache
51+ # mypy . --install-types --non-interactive --cache-dir .mypy-cache --explicit-package-bases --check-untyped-defs
5052
5153 conda-build :
5254 runs-on : ubuntu-latest
5355 needs : test
5456 steps :
5557 - name : checkout
56- uses : actions/checkout@v2
58+ uses : actions/checkout@v3
5759 with :
5860 fetch-depth : 0
59- - name : setup conda
60- uses : conda-incubator/setup-miniconda@v2
61+ - name : Install Conda environment with Micromamba
62+ uses : mamba-org/provision-with-micromamba@main
6163 with :
62- auto-update-conda : true
63- auto-activate-base : true
64- activate-environment : " "
64+ environment-file : false
65+ environment-name : build-env
66+ channels : conda-forge
67+ extra-specs : |
68+ boa
6569 - name : linux conda build
6670 shell : bash -l {0}
6771 run : |
68- conda install -n base -c conda-forge conda-build pip -y
69- conda build -c conda-forge conda-recipe
72+ conda mambabuild -c conda-forge conda-recipe
7073
7174 deploy :
7275 runs-on : ubuntu-latest
7376 needs : test
7477 steps :
75- - uses : actions/checkout@v2
78+ - uses : actions/checkout@v3
7679 - name : Set up Python 3.9
77- uses : actions/setup-python@v2
80+ uses : actions/setup-python@v4
7881 with :
7982 python-version : 3.9
8083 - name : Install dependencies
97100 if [[ -n '${{ github.event.pull_request.head.ref }}' ]]; then branch=gh-pages-${{ github.event.pull_request.head.ref }}; else branch=gh-pages; fi
98101 echo "::set-output name=branch::$branch"
99102 - name : Deploy to ${{ steps.get_branch.outputs.branch }} 🚀
100- uses : JamesIves/github-pages-deploy-action@4.1.4
103+ uses : JamesIves/github-pages-deploy-action@v4
101104 with :
102105 branch : ${{ steps.get_branch.outputs.branch }}
103106 folder : dist
0 commit comments