Skip to content

Commit

Permalink
ci: update to include .yaml and .gitignore file
Browse files Browse the repository at this point in the history
Signed-off-by: Norwid Behrnd <[email protected]>
  • Loading branch information
nbehrnd committed Mar 27, 2024
2 parents 6a2414d + 7bf6feb commit 936af7f
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI_pytest_datawarrior_saturate_murcko_scaffolds

# name : pytest.yml
# purpose : regularly run pytest on the saturator script
# date : [2024-03-21 Thu]
# edit :

on:
push:
branches:
- main # updates to enter the principal branch "main"
pull_request:
branches:
- main # PRs to enter the principal branch "main"
workflow_dispatch: # provide a manual trigger
schedule:
- cron: "0 0 1 * *" # once each 1st of a month, at 00:00 UTC (cf. https://crontab.guru/)

jobs:
linux-static:
runs-on: ubuntu-latest
timeout-minutes: 2

steps:
- name: Check number of cores
run: |
lscpu
lscpu | grep "CPU(s): " | awk '{print $2}' > num_cores
echo "NUM_CORES=$(cat num_cores)" >> $GITHUB_ENV
- uses: actions/checkout@v4
# by [2024-10-23 Wed], this version possibly will be considered "old", cf.
# https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/

- uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies with PyPI
run: pip install pytest

- name: run the check by pytest
run: python -m pytest
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
!.gitignore
!/.github/workflows/pytest.yml

0 comments on commit 936af7f

Please sign in to comment.