Skip to content

Commit 5ecc416

Browse files
modernize CI test script
1 parent 9640d83 commit 5ecc416

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

.github/workflows/conda_test.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ jobs:
1414
- uses: actions/checkout@v4
1515
- uses: conda-incubator/setup-miniconda@v3
1616
with:
17+
auto-update-conda: true
1718
activate-environment: test
18-
# environment-file: environment.yml
19+
miniforge-version: latest
1920
python-version: ${{ matrix.pyver }}
2021
auto-activate-base: false
21-
- shell: bash -l {0}
22+
conda-remove-defaults: true
23+
24+
- name: Setup environment
25+
shell: bash -l {0}
2226
run: |
23-
conda config --add channels conda-forge
24-
conda config --set channel_priority strict
25-
# conda info
26-
# conda list
27+
conda install python=${{ matrix.pyver }} --file conda_requirements.txt --file conda_requirements_dev.txt
28+
2729
- name: Build
2830
shell: bash -l {0}
2931
run: |
30-
conda list
31-
conda install python=${{ matrix.pyver }} --file conda_requirements.txt --file conda_requirements_dev.txt
32-
pip install .
32+
python -m pip install --no-deps -vv ./
3333
3434
- name: Test
3535
shell: bash -l {0}
@@ -41,18 +41,18 @@ jobs:
4141
runs-on: "ubuntu-latest"
4242
steps:
4343
- uses: actions/checkout@v4
44-
- uses: conda-incubator/setup-miniconda@v2
44+
- uses: conda-incubator/setup-miniconda@v3
4545
with:
46-
activate-environment: lint
47-
python-version: ${{ matrix.pyver }}
46+
auto-update-conda: true
47+
activate-environment: test
48+
miniforge-version: latest
49+
python-version: 3.9
4850
auto-activate-base: false
49-
- shell: bash -l {0}
50-
run: |
51-
conda config --add channels conda-forge
52-
conda config --set channel_priority strict
51+
conda-remove-defaults: true
5352
- name: Lint
5453
shell: bash -l {0}
5554
run: |
5655
conda install flake8
5756
# flake8 config in setup.cfg
57+
# python -m flake8 --exit-zero --statistics py_gd/
5858
python -m flake8 --statistics py_gd/

0 commit comments

Comments
 (0)