@@ -15,63 +15,64 @@ jobs:
1515 runs-on : ubuntu-latest
1616 steps :
1717
18- - name : Setting conda path
19- run : echo "::add-path::${HOME}/miniconda3/bin"
20-
2118 - name : Checkout
2219 uses : actions/checkout@v1
2320
24- - name : Setup environment
25- run : |
26- chmod +x ci/setup_env.sh
27- ci/setup_env.sh
28- if : always()
21+ - uses : conda-incubator/setup-miniconda@v2
22+ with :
23+ auto-update-conda : true
24+ activate-environment : dataframe_sql
25+ python-version : ${{ matrix.python-version }}
26+ channel-priority : strict
27+ environment-file : environment.yml
28+ use-only-tar-bz2 : true # IMPORTANT: This needs to be set for caching to work properly!
2929
3030 - name : Looking for unwanted patterns
31+ shell : bash -l {0}
3132 run : |
3233 chmod +x ci/code_checks.sh
3334 ci/code_checks.sh patterns
3435 if : always()
3536
3637 - name : Linting
38+ shell : bash -l {0}
3739 run : |
38- source activate dataframe_sql
3940 ci/code_checks.sh lint
4041 if : always()
4142
4243 - name : Dependencies consistency
44+ shell : bash -l {0}
4345 run : |
44- source activate dataframe_sql
4546 ci/code_checks.sh dependencies
4647 if : always()
4748
4849 - name : Checks on imported code
50+ shell : bash -l {0}
4951 run : |
50- source activate dataframe_sql
5152 ci/code_checks.sh code
5253 if : always()
5354
5455 - name : Running doctests
56+ shell : bash -l {0}
5557 run : |
56- source activate dataframe_sql
5758 ci/code_checks.sh doctests
5859 if : always()
5960
6061 - name : Docstring validation
62+ shell : bash -l {0}
6163 run : |
62- source activate dataframe_sql
6364 ci/code_checks.sh docstrings
6465 if : always()
6566
6667 - name : Typing validation
68+ shell : bash -l {0}
6769 run : |
68- source activate dataframe_sql
6970 ci/code_checks.sh typing
7071 if : always()
7172
7273 - name : Unit tests
74+ shell : bash -l {0}
7375 run : |
74- source activate dataframe_sql
7576 chmod +x ci/run_tests.sh
7677 ci/run_tests.sh
7778 if : always()
0 commit comments