Skip to content

Commit

Permalink
Launch CI on push to main and pull requests (#21)
Browse files Browse the repository at this point in the history
* Use on push to main and pull requests

* Use actions/checkout@v4

* Use root user as GitHub seems to support only root Docker users
  • Loading branch information
IvanYashchuk authored Apr 12, 2024
1 parent a2a83dd commit 5ff562c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
name: CI

on: [push]
on:
push:
branches:
- master
pull_request:

jobs:

test:
runs-on: ubuntu-latest
container:
image: docker://firedrakeproject/firedrake-vanilla:latest
options: --user root

steps:
# This Docker file changes sets USER to firedrake instead of using the default user, so we need to update file permissions for this image to work on GH Actions.
# See https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners#docker-container-filesystem
# (copied from https://help.github.com/en/actions/migrating-to-github-actions/migrating-from-circleci-to-github-actions)
- name: Setup file system permissions
run: sudo chmod -R 777 $GITHUB_WORKSPACE /github /__w/_temp

- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Python info
shell: bash
Expand Down

0 comments on commit 5ff562c

Please sign in to comment.