-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update python testing versions and actions
- Loading branch information
Showing
1 changed file
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,9 @@ name: Pytest | |
on: | ||
push: | ||
branches: | ||
- "master" | ||
- "main" | ||
pull_request: | ||
branches: | ||
- "master" | ||
- "main" | ||
|
||
jobs: | ||
|
@@ -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: | | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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/ | ||
|
@@ -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 }} | ||
|
||
|