Skip to content

Commit

Permalink
Clean up CI file
Browse files Browse the repository at this point in the history
  • Loading branch information
amstilp committed Oct 24, 2023
1 parent 88df443 commit 12f196f
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:


sqlite:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 10
Expand All @@ -54,11 +54,9 @@ jobs:
python -m pip install --upgrade pip
python -m pip install --upgrade tox tox-gh-actions
- name: sleep
run:
sleep 10

- name: Test with tox
# Sometimes tox fails to build the package correctly and intermittently throws an OSError or BadZipFile error.
# Upon retry, it seems to work.
uses: nick-fields/retry@v2
id: retry-sqlite
with:
Expand All @@ -70,10 +68,6 @@ jobs:
DBBACKEND: sqlite3
DBNAME: ":memory:"

# - name: Debug with tmate on failure
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3

- name: Upload coverage data
uses: actions/upload-artifact@v3
with:
Expand All @@ -82,7 +76,7 @@ jobs:


mysql:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 10
Expand Down Expand Up @@ -113,11 +107,9 @@ jobs:
python -m pip install --upgrade pip
python -m pip install --upgrade tox tox-gh-actions
- name: sleep
run:
sleep 10

- name: Test with tox
# Sometimes tox fails to build the package correctly and intermittently throws an OSError or BadZipFile error.
# Upon retry, it seems to work.
uses: nick-fields/retry@v2
id: retry-sqlite
with:
Expand All @@ -132,10 +124,6 @@ jobs:
DBPASSWORD: rootpw
DBHOST: 127.0.0.1

# - name: Debug with tmate on failure
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3

- name: Upload coverage data
uses: actions/upload-artifact@v3
with:
Expand All @@ -156,7 +144,6 @@ jobs:

- run: python -m pip install --upgrade coverage[toml] django==3.2.16 django-coverage-plugin


- name: Download coverage data.
uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 12f196f

Please sign in to comment.