Skip to content

Commit cbabc89

Browse files
committed
ci: drops mixed anaconda-pip testing
There is no need to use a mix of Anaconda and pip when ti comes to setting up testing environments. We can solely rely on pip thus simplifying the CI workflows.
1 parent 011609a commit cbabc89

File tree

1 file changed

+2
-49
lines changed

1 file changed

+2
-49
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -31,52 +31,6 @@ jobs:
3131
run: |
3232
.travis/prep_cron.sh
3333
34-
conda:
35-
needs:
36-
- resources
37-
runs-on: ${{ matrix.os }}
38-
strategy:
39-
fail-fast: false
40-
matrix:
41-
os: [ubuntu-latest]
42-
python: ["3.7", "3.8", "3.9", "3.10"]
43-
44-
defaults:
45-
run:
46-
shell: "bash -l {0}"
47-
48-
steps:
49-
- name: Checkout code
50-
uses: actions/checkout@v2
51-
52-
- name: Load resources
53-
uses: actions/cache@v3
54-
with:
55-
path: ./fortran_tests/before/*/
56-
key: resources-${{ github.event_name }}
57-
58-
- name: Install dependencies
59-
uses: mamba-org/provision-with-micromamba@main
60-
with:
61-
environment-file: environment.yml
62-
extra-specs: |
63-
python=${{ matrix.python }}
64-
coveralls
65-
66-
- name: Install project
67-
run: pip install .
68-
69-
- name: Run tests
70-
run: |
71-
coverage run --source=fprettify setup.py test
72-
73-
- name: Coverage upload
74-
run: coveralls --service=github
75-
env:
76-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77-
COVERALLS_FLAG_NAME: ${{ matrix.python }}
78-
COVERALLS_PARALLEL: true
79-
8034
pip:
8135
needs:
8236
- resources
@@ -85,7 +39,7 @@ jobs:
8539
fail-fast: false
8640
matrix:
8741
os: [ubuntu-latest]
88-
python: ["3.6" ]
42+
python: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11-dev"]
8943

9044
steps:
9145
- name: Checkout code
@@ -118,13 +72,12 @@ jobs:
11872
coverage:
11973
needs:
12074
- pip
121-
- conda
12275
runs-on: ubuntu-latest
12376

12477
steps:
12578
- uses: actions/setup-python@v3
12679
with:
127-
python-version: '3.x'
80+
python-version: "3.x"
12881

12982
- name: Install dependencies
13083
run: pip install coveralls

0 commit comments

Comments
 (0)