Skip to content

Commit

Permalink
[CI/CD](linting_and_testing): Update GA test workflow to Python >3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
PauAndrio committed Oct 17, 2024
1 parent 92a1468 commit 6ad6b8b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/linting_and_testing.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: tests

on:
on:
# workflow_dispatch
push:
branches: [ master ]
Expand All @@ -21,7 +21,7 @@ jobs:
strategy:
matrix:
os: [self-hosted]
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository code
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
pytest-html
flake8
pip
- name: Install genbadge from pip
shell: micromamba-shell {0} # necessary for conda env to be active
run: pip install genbadge[all]
Expand All @@ -72,13 +72,13 @@ jobs:
# Workflow fails: Stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# Create directory for flake8 reports
mkdir -p ./reports/flake8
# Exit-zero treats all errors as warnings, workflow will not fail:
flake8 . --exclude=docs --ignore=C901,E226 --count --exit-zero --max-complexity=10 --max-line-length=9999 --statistics --format=html --htmldir=./reports/flake8/ --tee --output-file=./reports/flake8/flake8stats.txt
- name: Generate Flake8 badge
shell: micromamba-shell {0} # necessary for conda env to be active
run: |
Expand All @@ -102,7 +102,7 @@ jobs:
# Copying .cdi file for canion
wget https://mmb.irbbarcelona.org/biobb-api/rest/v1/sample/biobb_dna/biobb_canion/input_cdi_path -O biobb_dna/test/data/curvesplus/THGA_K.cdi
# Create directory for tests reports
mkdir -p ./reports/junit
Expand All @@ -129,7 +129,7 @@ jobs:
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./reports

# - name: Restore .bash_profile
#  run: cp ~/.bash_profile_orig ~/.bash_profile

Expand Down

0 comments on commit 6ad6b8b

Please sign in to comment.