Skip to content

Commit

Permalink
Added some workflows for CI testing and code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
davenquinn committed Sep 6, 2024
1 parent 7f55661 commit 310a260
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Macrostrat continuous integration testing
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
python-version: '^3.11'

- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python3 -

- name: Install dependencies
run: poetry install

- name: Run Macrostrat tests
run: make test
8 changes: 4 additions & 4 deletions .github/workflows/format-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-python@v2
- uses: actions/setup-python@v5.2.0
with:
python-version: '3.x'
- uses: actions/cache@v2
python-version: '^3.11'
- uses: actions/cache@v4
with:
path: |
~/.cache/pypoetry
Expand Down

0 comments on commit 310a260

Please sign in to comment.