Skip to content

Commit

Permalink
Update pytest.yaml
Browse files Browse the repository at this point in the history
Update python testing versions and actions
  • Loading branch information
dbkchu committed Jul 19, 2024
1 parent 18834cb commit ffa4caf
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ name: Pytest
on:
push:
branches:
- "master"
- "main"
pull_request:
branches:
- "master"
- "main"

jobs:
Expand All @@ -17,12 +15,12 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.7", "3.8"]
python-version: ["3.8", "3.10"]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Additional info about the build
run: |
Expand All @@ -34,7 +32,7 @@ jobs:
uses: josStorer/[email protected]
id: current-time
- name: Cache conda env
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
env:
# Increase this value to reset cache if mols.yml has not changed
Expand All @@ -49,7 +47,7 @@ jobs:

# More info on the whole conda setup: https://github.com/conda-incubator/setup-miniconda
- name: Setup Conda
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
id: conda-setup
with:
# mamba-version: "*" # uncomment to activate mamba
Expand Down Expand Up @@ -77,7 +75,7 @@ jobs:
pytest --doctest-modules --ignore=molSimplify/Informatics/MOF --ignore=molSimplify/Informatics/protein --ignore=molSimplify/Scripts/in_b3lyp_usetc.py --ignore=molSimplify/Informatics/jupyter_vis.py --ignore=molSimplify/Informatics/macrocycle_synthesis.py --ignore=molSimplify/Informatics/organic_fingerprints.py molSimplify
- name: Upload coverage report to codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/reports/
Expand Down Expand Up @@ -111,7 +109,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down

0 comments on commit ffa4caf

Please sign in to comment.