Skip to content

Commit 6464ea2

Browse files
committed
CI: Update CI settings
1 parent 5b27dc4 commit 6464ea2

2 files changed

Lines changed: 21 additions & 23 deletions

File tree

.github/workflows/azure-pipelines.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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()

environment.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ channels:
44
dependencies:
55
# required
66
- pandas>=1.0.1
7-
- lark-parser=0.8.1
8-
- python=3.7
97

108
# code checks
119
- black=19.10b0
@@ -15,14 +13,13 @@ dependencies:
1513
- mypy=0.761
1614
- pycodestyle # used by flake8
1715

18-
# documentation
19-
- gitpython # obtain contributors from git for whatsnew
20-
- gitdb2=2.0.6 # GH-32060
21-
2216
# testing
2317
- freezegun
2418
- pytest>=5.0.1
25-
- pytest-cov
2619
- pytest-xdist>=1.21
27-
- pytest-asyncio
20+
21+
- pip
22+
- pip:
23+
- black
24+
- sql-to-ibis==0.3.0
2825

0 commit comments

Comments
 (0)