Skip to content

Commit

Permalink
test: update testing_daily;
Browse files Browse the repository at this point in the history
  • Loading branch information
WenjieDu committed Jul 26, 2024
1 parent 02adf5f commit 38a6cb0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/testing_daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
schedule:
# https://crontab.guru. Run everyday at 0:00AM UTC, i.e. 08:00AM Beijing, i.e. 08:00PM Montreal (summer time)
- cron: "0 0 * * *"
push:
branches:
- temp_test_branch # if in need, create such a temporary branch to test some functions

jobs:
Daily-testing:
Expand All @@ -14,27 +17,21 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-13]
python-version: ["3.7", "3.11"]
os: [ ubuntu-latest, windows-latest, macOS-latest ]
python-version: [ "3.8", "3.11" ]
pytorch-version: ["2.3.0"]

steps:
- name: Check out the repo code
uses: actions/checkout@v3

- name: Determine the PyTorch version
uses: haya14busa/action-cond@v1
id: determine_pytorch_ver
with:
cond: ${{ matrix.python-version == 3.7 }}
if_true: "1.13.1"
if_false: "2.1.0"

- name: Set up Conda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: pypots-test
activate-environment: pypots
python-version: ${{ matrix.python-version }}
environment-file: tests/environment_for_conda_test.yml
environment-file: requirements/conda_env.yml
auto-activate-base: false

- name: Fetch the test environment details
Expand Down
5 changes: 2 additions & 3 deletions requirements/conda_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ channels:

dependencies:
# basic
- conda-forge::python >=3.8
- conda-forge::pip
- conda-forge::h5py
- conda-forge::numpy
- conda-forge::scipy
- conda-forge::sympy
- conda-forge::python
- conda-forge::einops
- conda-forge::pandas
- conda-forge::seaborn
Expand All @@ -24,8 +24,6 @@ dependencies:
- conda-forge::tsdb >=0.6
- conda-forge::benchpots >=0.2
- pytorch::pytorch >=1.10.0
## Below we install the latest pypots because we need pypots-cli in it for development.
- conda-forge::pypots

# optional
- pyg::pyg
Expand All @@ -46,6 +44,7 @@ dependencies:
# dev
- conda-forge::black
- conda-forge::flake8
- conda-forge::flake8-pyproject
- conda-forge::pre-commit
- conda-forge::jupyterlab

Expand Down

0 comments on commit 38a6cb0

Please sign in to comment.